Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NetBSD] two fixes for swap code #2128

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Conversation

0-wiz-0
Copy link
Contributor

@0-wiz-0 0-wiz-0 commented Aug 2, 2022

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)

@giampaolo
Copy link
Owner

Can you please update README and CREDITS?

@0-wiz-0
Copy link
Contributor Author

0-wiz-0 commented Aug 2, 2022

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

@giampaolo giampaolo merged commit 84219ad into giampaolo:master Aug 18, 2022
@giampaolo
Copy link
Owner

Merged. Thank you Thomas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants