diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index 201037d4..b9cffcd5 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -234,13 +234,23 @@ function updateInfo() { } function updateQueryFrequency(intl, frequency) { + let freq = parseFloat(frequency); + let unit = "q/s"; + let title = "Queries per second"; + if (freq < 0.5) { + freq *= 60; + unit = "q/m"; + title = "Queries per minute"; + } + $("#query_frequency") .html( - '  ' + - intl.format(parseFloat(frequency)) + - " q/s" + '  ' + + intl.format(freq) + + " " + + unit ) - .attr("title", "Queries per second"); + .attr("title", title); } var ftlinfoTimer = null;