summaryrefslogtreecommitdiff
path: root/psutil/_psosx.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/_psosx.py
parentd6445f68faaa332612cebd91bfbfc56f24daed77 (diff)
downloadpsutil-bf79914769f0e9e41830adccc09c62636a66f0dd.tar.gz
rename function arg
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r--psutil/_psosx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py
index 308756a8..193f63e0 100644
--- a/psutil/_psosx.py
+++ b/psutil/_psosx.py
@@ -122,7 +122,7 @@ def virtual_memory():
total, active, inactive, wired, free = cext.virtual_mem()
avail = inactive + free
used = active + inactive + wired
- percent = usage_percent((total - avail), total, _round=1)
+ percent = usage_percent((total - avail), total, round_=1)
return svmem(total, avail, percent, used, free,
active, inactive, wired)
@@ -130,7 +130,7 @@ def virtual_memory():
def swap_memory():
"""Swap system memory as a (total, used, free, sin, sout) tuple."""
total, used, free, sin, sout = cext.swap_mem()
- percent = usage_percent(used, total, _round=1)
+ percent = usage_percent(used, total, round_=1)
return _common.sswap(total, used, free, percent, sin, sout)