mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Show active instead of clients-ever-seen on the dashboard (#2769)
This commit is contained in:
4
index.lp
4
index.lp
@@ -22,8 +22,8 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
|
||||
<div class="icon">
|
||||
<i class="fas fa-globe-americas"></i>
|
||||
</div>
|
||||
<a href="network.lp" class="small-box-footer" title="">
|
||||
<span id="total_clients">-</span> active clients <i class="fa fa-arrow-circle-right"></i>
|
||||
<a href="network.lp" class="small-box-footer" title="" id="total_clients">
|
||||
<span id="active_clients">-</span> active clients <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user