Merge branch 'development' of https://github.com/gh0stshell/pi-hole into gh0stshell/Bugfix/LogFlush

This commit is contained in:
Dan Schaper 2016-01-30 07:13:07 +00:00
commit 46eee2e9fc
2 changed files with 2 additions and 2 deletions

View file

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

View file

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