pi-hole / web

Pi-hole Dashboard for stats and more
https://pi-hole.net
Other
2.03k stars 558 forks source link

Graph gets interpolated if there are no queries over a long time (screenshot inside) #562

Closed maciboy closed 6 years ago

maciboy commented 7 years ago

In raising this issue, I confirm the following (please check boxes, eg [X] - no spaces) Failure to fill the template will close your issue:

How familiar are you with the codebase?:

1


[BUG | ISSUE] Expected Behaviour: Between 2:30am and 9:30am there were no DNS queries, so the graphs should be set to 0 in this interval.

[BUG | ISSUE] Actual Behaviour: For the timespan 2:30-2:39am there are 6 queries. Until the timespan 9:30-9:39am there were no queries, so there are no markers set in the graph. The next marker is correctly set to 56 queries at 9:30am. However, the graph in this interval with no queries is not set to 0, instead the markers of the 2 timespans with queries are connected and the graph between gets interpolated. This behavior creates the impression as if there were an increasing number of queries over night, although there no queries at all.

[BUG | ISSUE] Steps to reproduce:

(Optional) Debug token generated by pihole -d:

<token>

This template was created based on the work of udemy-dl.

bildschirmfoto 2017-08-06 um 16 43 50

AzureMarker commented 7 years ago

Was the Pi-hole on and working (but no queries) or turned off?

maciboy commented 7 years ago

Pi-hole was running. There simply was no device in the network with an active internet connection since all of them were either off or in flight mode, so there were no queries.

AzureMarker commented 7 years ago

We're working on a fix for the next release of FTL. The issue was that the graph was not getting any information about the time without queries, so it assumed that it should interpolate between those points. FTL will now explicitly tell the graph that there were no queries in that time block.

maciboy commented 7 years ago

Thank you so much for this very quick fix! And of course for this great piece of software all in all! I was using OpenDNS with some filters before, but this is soo much better :)

jacobsalmela commented 6 years ago

Fixed in v3.2