mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Top Clients (blocked): Compute frequency relative to number of blocked not total number of queries
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -593,7 +593,7 @@ function updateTopClientsChart() {
|
||||
}
|
||||
|
||||
url = "<a href=\"queries.php?client="+clientip+"\" title=\""+clientip+"\">"+clientname+"</a>";
|
||||
percentage = data.top_sources_blocked[client] / data.dns_queries_today * 100;
|
||||
percentage = data.top_sources_blocked[client] / data.ads_blocked_today * 100;
|
||||
clientblockedtable.append("<tr> <td>" + url +
|
||||
"</td> <td>" + data.top_sources_blocked[client] + "</td> <td> <div class=\"progress progress-sm\" title=\""+percentage.toFixed(1)+"% of " + data.dns_queries_today + "\"> <div class=\"progress-bar progress-bar-blue\" style=\"width: " +
|
||||
percentage + "%\"></div> </div> </td> </tr> ");
|
||||
|
||||
Reference in New Issue
Block a user