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
NetworkBandwidth deltas and rates are not calculated correctly? #49
Comments
Oops, yes, that should actually be what the check is all about. Seems I missed that issue. |
Ah, glad that I did not misunderstood the feature! I can try to submit a fix, how/where would you store the previous values and previous time info? |
languitar
added a commit
that referenced
this issue
Jan 11, 2019
Ensure that each iteration of NetworkBandwidth really uses the state from the previous iteration for comparison. fixes #49
languitar
added a commit
that referenced
this issue
Jan 11, 2019
Ensure that each iteration of NetworkBandwidth really uses the state from the previous iteration for comparison. fixes #49
Sorry for the delay. The issue is fixed and release as v2.0.3. Packaging for Archlinux and Debian is on its way. |
Thanks for the quick fix, works like a charm! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
According to the manual:
However,
self._previous_values
andself._previous_time
are never updated. Their values are the ones at time of the start of autosuspend. As a result the average is not so much based on the global checking interval, but more that the average is based on total traffic since the start of the software and this average is updated at each interval.Could it be possible to have these previous values updated at each interval so that we can get the average within the specified interval? Otherwise it makes this feature a bit difficult to use, unless I am overlooking something of course!
Thanks!
The text was updated successfully, but these errors were encountered: