summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-01-19 13:24:23 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-01-19 13:24:23 +0100
commit8304c4d050d629381b8762a66c5fc88f505261cd (patch)
treece015c17d9263072a5e0334cfdc0c1cd0d25b5ae
parent9dea5e5033fd63f6269716d0a65eab70885bd80a (diff)
parenta88c4a986d574e8d208df2cd11cc53bed6883894 (diff)
downloadpsutil-8304c4d050d629381b8762a66c5fc88f505261cd.tar.gz
Merge pull request #731 from syohex/invalid-type
Correct data type for 'hw.physmem'
-rw-r--r--psutil/arch/bsd/freebsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/arch/bsd/freebsd.c b/psutil/arch/bsd/freebsd.c
index 94a1001c..3b7fc478 100644
--- a/psutil/arch/bsd/freebsd.c
+++ b/psutil/arch/bsd/freebsd.c
@@ -473,7 +473,8 @@ error:
*/
PyObject *
psutil_virtual_mem(PyObject *self, PyObject *args) {
- unsigned int total, active, inactive, wired, cached, free;
+ unsigned long total;
+ unsigned int active, inactive, wired, cached, free;
size_t size = sizeof(total);
struct vmtotal vm;
int mib[] = {CTL_VM, VM_METER};