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
Upstream donut: Low values strike yet again #2500
Comments
Supplementary: Trying to understand the very low apparent cache usage, are responses returned from stale cache not counted as cache hits? Stale cache hits appear to have a unique identifier in the database but I'm not sure how this is represented in the APIs/stats. Edit: Additional minor quibble, should it not be The upstream is cache, cached is what had to happen before it could be an upstream. This possibly begs a deeper question as to whether cache or block responses even belong in an upstream graph. |
Thanks for your report. I see where your confusion comes from, however, I think this is not a "bug" itself but an issue with rounding really small values. We use this code to display/calculate the tooltip: All values are rounded to |
Yes, that appears to be what's happening here. It occurred to me I could just look at my Munin plugin to confirm. So, what then if anything, is the solution to this? I understand it, but it really doesn't feel "correct". Though, neither do any workarounds seem any more correct. An extra degree of precision could maybe make it obvious what's happening - but it wouldn't be needed for all values and it seems difficult or impossible to predict where these weird edge cases pop up. Any input on the supplementary question would be appreciated also. |
This is the way to go I think. I'll implement a version that will increase precision of the labels to |
Please try |
Looks good on this end. |
Fix released with https://github.com/pi-hole/AdminLTE/releases/tag/v5.18.2 |
Versions
Platform
Expected behavior
Accurate upstream donut slices.
Actual behavior / bug
Inaccurate upstream donut slices.
Steps to reproduce
Steps to reproduce the behavior:
Screenshots
Additional context
In the provided screenshots you can see two values of 0.1 being represented as 40% and 60%, instead of 50% each (0.1 and 0.1 are equal values).
The text was updated successfully, but these errors were encountered: