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

Only report CPU percentage per period if period is > 0 #175

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

tklauser
Copy link
Collaborator

@tklauser tklauser commented Jul 7, 2022

The change in #154 lead to the CPU usage being reported for a 0s
duration:

cpu usage (0s):	NaN%

Fix this by only reporting CPU usage per period if the user specified a
positive duration.

@tklauser tklauser requested a review from odeke-em July 7, 2022 09:26
The change in #154 lead to the CPU usage being reported for a 0s
duration:

cpu usage (0s):	NaN%

Fix this by only reporting CPU usage per period if the user specified a
positive duration.
@tklauser tklauser merged commit 9f82804 into master Jul 8, 2022
@tklauser tklauser deleted the pr/fix-154 branch July 8, 2022 08:33
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.

1 participant