psutil icon indicating copy to clipboard operation
psutil copied to clipboard

[NetBSD] two fixes for swap code

Open 0-wiz-0 opened this issue 2 years ago • 2 comments

Summary

  • OS: NetBSD
  • Bug fix: yes
  • Type: core
  • Fixes: -

Description

Fixes swap reporting on machines with lots of swap.

Before:

>>> import psutil
>>> psutil.swap_memory()
sswap(total=-170917888, used=5307994112, free=-5478912000, percent=-3105.6, sin=0, sout=528124133376)

After:

>>> import psutil
>>> psutil.swap_memory()
sswap(total=476570451968, used=5305618432, free=471264833536, percent=1.1, sin=0, sout=528124133376)

0-wiz-0 avatar Aug 02 '22 17:08 0-wiz-0

Can you please update README and CREDITS?

giampaolo avatar Aug 02 '22 17:08 giampaolo

I've updated HISTORY and CREDITS, I hope that's what you meant - not sure what I should edit in README.

0-wiz-0 avatar Aug 02 '22 18:08 0-wiz-0

Merged. Thank you Thomas.

giampaolo avatar Aug 18 '22 17:08 giampaolo