mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-19 05:40:13 +00:00
Missed one!
This commit is contained in:
parent
248d8680f7
commit
b4c32e47c6
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ normalChrono() {
|
||||||
# Uncomment to continually read the log file and display the current domain being blocked
|
# Uncomment to continually read the log file and display the current domain being blocked
|
||||||
#tail -f /var/log/pihole.log | awk '/\/etc\/pihole\/gravity.list/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/pihole/gravity.list") print $7; else;}'
|
#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`
|
json=$(curl -s -X GET http://127.0.0.1/admin/api.php?summaryRaw)
|
||||||
|
|
||||||
domains=$(printf "%'.f" $(GetJSONValue ${json} "domains_being_blocked")) #add commas in
|
domains=$(printf "%'.f" $(GetJSONValue ${json} "domains_being_blocked")) #add commas in
|
||||||
queries=$(printf "%'.f" $(GetJSONValue ${json} "dns_queries_today"))
|
queries=$(printf "%'.f" $(GetJSONValue ${json} "dns_queries_today"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue