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

Invalid values received for swap_memory() #2091

Closed
rose112 opened this issue Apr 1, 2022 · 2 comments
Closed

Invalid values received for swap_memory() #2091

rose112 opened this issue Apr 1, 2022 · 2 comments

Comments

@rose112
Copy link

rose112 commented Apr 1, 2022

Summary

  • OS: Windows 11 pro 64Bit (Version 21H2)
  • Architecture: 64bit, Ryzen 5 (AMD64)
  • Psutil version: Version: 5.9.0
  • Python version: 3.10.4 64Bit

Description

{{{
Executing
"psutil.swap_memory()"
on my system, the following result is received;
"sswap(total=4091871232, used=4315365376, free=-223494144, percent=105.5, sin=0, sout=0)"
As you can see, the value of the used SWAP is greater than the total amount of the SWAP.
The value of the free SWAP is correctly calculated as negative and the percentage of use is
greater than 100% - also correctly calculated out of the values for total and available SWAP.

}}}

@rose112 rose112 added the bug label Apr 1, 2022
@dbwiddis
Copy link
Contributor

dbwiddis commented Apr 3, 2022

Looks like a duplicate of #2074

@rose112
Copy link
Author

rose112 commented Apr 3, 2022

Duplicate of #2074

so I close it

@rose112 rose112 closed this as completed Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants