diff --git a/index.lp b/index.lp index ba246f4e..713b6ca6 100644 --- a/index.lp +++ b/index.lp @@ -22,8 +22,8 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
- - - active clients + + - active clients diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 814ad143..6620de17 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -384,7 +384,11 @@ function updateSummaryData(runOnce) { $.getJSON("/api/stats/summary", function (data) { var intl = new Intl.NumberFormat(); glowIfChanged($("span#dns_queries"), intl.format(parseInt(data.queries.total, 10))); - glowIfChanged($("span#total_clients"), intl.format(parseInt(data.clients.total, 10))); + glowIfChanged($("span#active_clients"), intl.format(parseInt(data.clients.active, 10))); + $("a#total_clients").attr( + "title", + intl.format(parseInt(data.clients.total, 10)) + " total clients" + ); glowIfChanged($("span#blocked_queries"), intl.format(parseFloat(data.queries.blocked))); glowIfChanged( $("span#percent_blocked"),