diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2018-03-24 20:48:44 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-03-24 20:48:44 +0100 |
commit | bf79914769f0e9e41830adccc09c62636a66f0dd (patch) | |
tree | 5aef7a101615811c3e583ffeae6999261e8ef66c /psutil/_psosx.py | |
parent | d6445f68faaa332612cebd91bfbfc56f24daed77 (diff) | |
download | psutil-bf79914769f0e9e41830adccc09c62636a66f0dd.tar.gz |
rename function arg
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r-- | psutil/_psosx.py | 4 |
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) |