mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-16 12:29:03 +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"
|
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…
Add table
Reference in a new issue