diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 8124d975..6231dd64 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -28,7 +28,7 @@ gravityraw="/etc/pihole/list.preEventHorizon" gravity="/etc/pihole/gravity.list" today=$(date "+%b %e") -IPv4_address=$(echo "${IPv4_address}" | cut -d"/" -f1) +IPv4_address=${IPv4_address%/*} CalcPercentBlockedToday() { if [ "${queriesToday}" != "Err." ] && [ "${blockedToday}" != "Err." ]; then