1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-19 22:58:16 +00:00

Codacy complaints

This commit is contained in:
Promofaux 2017-01-12 21:50:16 +00:00
parent 2ee305769d
commit 1bda965a7c

View File

@ -53,7 +53,7 @@ normalChrono() {
#tail -f /var/log/pihole.log | awk '/\/etc\/pihole\/gravity.list/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/pihole/gravity.list") print $7; else;}'
json=`curl -s -X GET http://127.0.0.1/admin/api.php?summaryRaw`
LC_NUMERIC=C LC_COLLATE=C
domains=$(printf "%'.f" `GetJSONValue ${json} "domains_being_blocked"`) #add commas in
queries=$(printf "%'.f" `GetJSONValue ${json} "dns_queries_today"`)
blocked=$(printf "%'.f" `GetJSONValue ${json} "ads_blocked_today"`)