baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

(FreeBSD) make psutil.virtmem_usage() actually return info about swap usage #308

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From the doc:

> [...] on FreeBSD they represent the same values as returned
> by sysctl vm.vmtotal

...hence we're returning info about virtual memory, which is fine, given the 
function name.
Given we're about to rename virtmem_usage() to swapmem_usage() (issue 256) we 
now have the chance to return actual swap memory information, which can be 
determinaed by using kvm_getswapinfo().

This somewhat breaks compatibility as we're now returning a totally different 
kind of information but the usefulness of the previous one was doubtful anyway.

Committed in r1475.

Original issue reported on code.google.com by g.rodola on 19 Jul 2012 at 1:06

GoogleCodeExporter commented 8 years ago
Fixed in version 0.6.0, released just now.

Original comment by g.rodola on 13 Aug 2012 at 4:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1475 == revision f02fc33484cd

Original comment by g.rodola on 2 Mar 2013 at 12:11