Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Sometimes unable to compute CPU percentage at measurement node startup #65

Open
mm318 opened this issue Jan 9, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mm318
Copy link
Member

mm318 commented Jan 9, 2020

This has been brought up at #40 (comment) and #59 (comment).

Currently, the first measurement occurs at the end of the first measurement period (which is also the start of the second measurement period).

If the measurement period and publishing period are at about the same magnitude, there may have been only one measurement at the time of calculating the first statistic message for publishing. This is a problem for the CPU usage measurement nodes, because calculating CPU usage requires having two measurements.

The solution would be to make the first measurement at the start of the first measurement period. (For consistency, we might as well do this for the memory measurement nodes as well.)

@mm318
Copy link
Member Author

mm318 commented Jan 9, 2020

If the user for some reason sets the measurement period to be greater than the publishing period, then all bets are off.

@mm318 mm318 added the bug Something isn't working label Jan 9, 2020
@emersonknapp emersonknapp changed the title Avoid being unable to compute CPU percentage at measurement node startup Sometimes unable to compute CPU percentage at measurement node startup Mar 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant