Remove grpping for today's log entries, because we flush the log every day

This commit is contained in:
DL6ER 2016-12-22 18:45:53 +01:00
parent 420fb69166
commit e88f58c34e
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
2 changed files with 1 additions and 3 deletions

View file

@ -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
View file