diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-11-09 23:07:54 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-11-09 23:07:54 +0100 |
commit | 2fa6a9ae455bcf35e9be8da7583b5061c4ebddd2 (patch) | |
tree | 5bae9282721423cc836e6c889bbb090b60c6175b | |
parent | 7f37e23c5f66d2f3a789ba1e306d73580fd5e5a3 (diff) | |
download | psutil-2fa6a9ae455bcf35e9be8da7583b5061c4ebddd2.tar.gz |
fix broken include
-rw-r--r-- | psutil/arch/windows/wmi.c | 2 | ||||
-rw-r--r-- | psutil/tests/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/psutil/arch/windows/wmi.c b/psutil/arch/windows/wmi.c index b7467309..f9a847d3 100644 --- a/psutil/arch/windows/wmi.c +++ b/psutil/arch/windows/wmi.c @@ -10,7 +10,7 @@ #include <windows.h> #include <pdh.h> -#include "_psutil_common.h" +#include "../../_psutil_common.h" // We use an exponentially weighted moving average, just like Unix systems do diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index a2875ad5..897fed8b 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -1136,7 +1136,7 @@ def print_sysinfo(): tuple([x / psutil.cpu_count() * 100 for x in psutil.getloadavg()])) mem = psutil.virtual_memory() info['memory'] = "%3s%%, %s/%s" % ( - int(mem.percent), bytes2human(mem.available), bytes2human(mem.total)) + int(mem.percent), bytes2human(mem.used), bytes2human(mem.total)) info['pids'] = len(psutil.pids()) info['proc'] = pprint.pformat(pinfo) |