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

psutil.cpu_times_percent() may produce negative results. #645

Closed
giampaolo opened this issue Jul 11, 2015 · 0 comments
Closed

psutil.cpu_times_percent() may produce negative results. #645

giampaolo opened this issue Jul 11, 2015 · 0 comments

Comments

@giampaolo
Copy link
Owner

Just saw this failing on Travis / Linux:

======================================================================
FAIL: test_sys_per_cpu_times_percent (__main__.TestSystemAPIs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 841, in test_sys_per_cpu_times_percent
    self._test_cpu_percent(percent)
  File "test/test_psutil.py", line 809, in _test_cpu_percent
    self.assertGreaterEqual(percent, 0.0)
AssertionError: -100.0 not greater than or equal to 0.0
----------------------------------------------------------------------
@giampaolo giampaolo changed the title Negative per cpu percent psutil.cpu_times_percent() may produce negative results. Jul 15, 2015
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

No branches or pull requests

1 participant