From 92249365b45e6e1c50020957d2c1bfcc63409ad2 Mon Sep 17 00:00:00 2001 From: Tommy Huff Date: Sat, 22 Oct 2016 21:59:23 -0400 Subject: [PATCH] use standard bash to remove CIDR --- advanced/Scripts/chronometer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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