mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +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
2 changed files with 1 additions and 3 deletions
|
@ -15,8 +15,6 @@
|
|||
piLog="/var/log/pihole.log"
|
||||
gravity="/etc/pihole/gravity.list"
|
||||
|
||||
today=$(date "+%b %e")
|
||||
|
||||
. /etc/pihole/setupVars.conf
|
||||
|
||||
CalcBlockedDomains() {
|
||||
|
@ -35,7 +33,7 @@ CalcBlockedDomains() {
|
|||
|
||||
CalcQueriesToday() {
|
||||
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
|
||||
queriesToday="Err."
|
||||
fi
|
||||
|
|
0
advanced/Scripts/update.sh
Normal file → Executable file
0
advanced/Scripts/update.sh
Normal file → Executable file
Loading…
Reference in a new issue