mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-20 10:16:51 +00:00
Merge branch 'development' of https://github.com/gh0stshell/pi-hole into gh0stshell/Bugfix/LogFlush
This commit is contained in:
commit
46eee2e9fc
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ function CalcBlockedDomains(){
|
||||||
|
|
||||||
function CalcQueriesToday(){
|
function 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
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
#the Free Software Foundation, either version 2 of the License, or
|
#the Free Software Foundation, either version 2 of the License, or
|
||||||
#(at your option) any later version.
|
#(at your option) any later version.
|
||||||
|
|
||||||
truncate -s 0 /var/log/pihole.log
|
echo " " > /var/log/pihole.log
|
||||||
|
|
Loading…
Add table
Reference in a new issue