summaryrefslogtreecommitdiff
path: root/psutil/_pssunos.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2018-03-24 20:48:44 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2018-03-24 20:48:44 +0100
commitbf79914769f0e9e41830adccc09c62636a66f0dd (patch)
tree5aef7a101615811c3e583ffeae6999261e8ef66c /psutil/_pssunos.py
parentd6445f68faaa332612cebd91bfbfc56f24daed77 (diff)
downloadpsutil-bf79914769f0e9e41830adccc09c62636a66f0dd.tar.gz
rename function arg
Diffstat (limited to 'psutil/_pssunos.py')
-rw-r--r--psutil/_pssunos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py
index 35b4b092..e2f33a3a 100644
--- a/psutil/_pssunos.py
+++ b/psutil/_pssunos.py
@@ -131,7 +131,7 @@ def virtual_memory():
# note: there's no difference on Solaris
free = avail = os.sysconf('SC_AVPHYS_PAGES') * PAGE_SIZE
used = total - free
- percent = usage_percent(used, total, _round=1)
+ percent = usage_percent(used, total, round_=1)
return svmem(total, avail, percent, used, free)
@@ -163,7 +163,7 @@ def swap_memory():
total += int(int(t) * 512)
free += int(int(f) * 512)
used = total - free
- percent = usage_percent(used, total, _round=1)
+ percent = usage_percent(used, total, round_=1)
return _common.sswap(total, used, free, percent,
sin * PAGE_SIZE, sout * PAGE_SIZE)