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

master: improve CPU usage charts-data calculations #891

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fogti
Copy link

@fogti fogti commented Sep 3, 2020

The current code is repetetive. I tried to fix that.

@fogti fogti marked this pull request as ready for review September 5, 2020 18:43
Comment on lines -187 to -188
pc.it_value.tv_sec = 0;
uc.it_value.tv_usec = 0;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be noted that this PR modifies the behavoir a bit: the code here seems to be a bit inconsistent, as it modifies both pc and uc, which didn't seem to be intended.

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.

None yet

1 participant