mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-17 17:04:07 +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(){
|
||||
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
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
#the Free Software Foundation, either version 2 of the License, or
|
||||
#(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