mirror of
https://github.com/pi-hole/pi-hole
synced 2025-06-10 02:28:44 +00:00
Remove grpping for today's log entries, because we flush the log every day
This commit is contained in:
parent
420fb69166
commit
e88f58c34e
@ -15,8 +15,6 @@
|
|||||||
piLog="/var/log/pihole.log"
|
piLog="/var/log/pihole.log"
|
||||||
gravity="/etc/pihole/gravity.list"
|
gravity="/etc/pihole/gravity.list"
|
||||||
|
|
||||||
today=$(date "+%b %e")
|
|
||||||
|
|
||||||
. /etc/pihole/setupVars.conf
|
. /etc/pihole/setupVars.conf
|
||||||
|
|
||||||
CalcBlockedDomains() {
|
CalcBlockedDomains() {
|
||||||
@ -35,7 +33,7 @@ CalcBlockedDomains() {
|
|||||||
|
|
||||||
CalcQueriesToday() {
|
CalcQueriesToday() {
|
||||||
if [ -e "${piLog}" ]; then
|
if [ -e "${piLog}" ]; then
|
||||||
queriesToday=$(cat "${piLog}" | grep "${today}" | awk '/query/ {print $6}' | wc -l)
|
queriesToday=$(cat "${piLog}" | awk '/query/ {print $6}' | wc -l)
|
||||||
else
|
else
|
||||||
queriesToday="Err."
|
queriesToday="Err."
|
||||||
fi
|
fi
|
||||||
|
0
advanced/Scripts/update.sh
Normal file → Executable file
0
advanced/Scripts/update.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user