-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swap_memory is not in bytes on FreeBSD #1255
Comments
Yes all values are supposed to be expressed in bytes. |
Sure. Not sure if I can get to it this week, but I don't mind tackling this. |
Take a look at: |
Forget about it, it's for NetBSD. =) |
I fixed it locally, hopefully I did this the right way. My C is way rusty ;) |
Within what time frame can I expect a release of psutil with this fix in it? |
It's out. Enjoy! |
Awesome, thank you 🎉 |
Running
psutil.swap_memory
on FreeBSD 10.3 I gives me the following output:Running
swapinfo
at the same time returns with the following output:In other words, psutil thinks I got
2'097'088
bytes of swap, even though I actually have8'388'608'000
bytes. Since the answer is off by a factor of almost exactly 4000, I assume that psutil doesn't really return bytes here.Am I missing something? These values should be in bytes, right?
The text was updated successfully, but these errors were encountered: