From 0d283bbfa240c090f79dba9b0198d8f534e60a19 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 10 May 2018 15:26:44 +0200 Subject: [PATCH] Address codacy issues Signed-off-by: DL6ER --- scripts/pi-hole/js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 18f23724..68658e07 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -536,7 +536,7 @@ function updateTopClientsChart() { // Clear tables before filling them with data $("#client-frequency td").parent().remove(); var clienttable = $("#client-frequency").find("tbody:last"); - var client, percentage, clientname, clientip, idx; + var client, percentage, clientname, clientip, idx, url; for (client in data.top_sources) { if ({}.hasOwnProperty.call(data.top_sources, client)){ @@ -559,7 +559,7 @@ function updateTopClientsChart() { clientip = client; } - var url = ""+clientname+""; + url = ""+clientname+""; percentage = data.top_sources[client] / data.dns_queries_today * 100; clienttable.append(" " + url + " " + data.top_sources[client] + "
"+clientname+""; + url = ""+clientname+""; percentage = data.top_sources_blocked[client] / data.dns_queries_today * 100; clientblockedtable.append(" " + url + " " + data.top_sources_blocked[client] + "