Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Oct 21, 2022
1 parent e3dc04e commit 05ec114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psutil/_psutil_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -1599,7 +1599,7 @@ PsutilMethods[] = {
{"disk_usage", psutil_disk_usage, METH_VARARGS},
{"getloadavg", (PyCFunction)psutil_get_loadavg, METH_VARARGS},
{"getpagesize", psutil_getpagesize, METH_VARARGS},
{"getpercentswap", (PyCFunction)psutil_get_loadavg, METH_VARARGS},
{"getpercentswap", (PyCFunction)psutil_get_percentswap, METH_VARARGS},
{"init_loadavg_counter", (PyCFunction)psutil_init_loadavg_counter, METH_VARARGS},
{"net_connections", psutil_net_connections, METH_VARARGS},
{"net_if_addrs", psutil_net_if_addrs, METH_VARARGS},
Expand Down
2 changes: 1 addition & 1 deletion psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def swap_memory():
# while the corresponding free physical value is not decremented until
# pages are accessed, so we ignore free system memory and calculate
# page file usage based on performance counter
percentswap = cext.percentswap()
percentswap = cext.getpercentswap()
used = int(percentswap * total)
free = total - used
percent = usage_percent(used, total, round_=1)
Expand Down

0 comments on commit 05ec114

Please sign in to comment.