1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 14:18:15 +00:00

Fix chronometer interpreting summaryRaw

This commit is contained in:
Mcat12 2017-01-29 13:32:48 -05:00 committed by GitHub
parent 3060c4d887
commit f8944177a0

View File

@ -22,7 +22,7 @@ function GetJSONValue {
retVal=$(echo $1 | sed 's/\\\\\//\//g' | \ retVal=$(echo $1 | sed 's/\\\\\//\//g' | \
sed 's/[{}]//g' | \ sed 's/[{}]//g' | \
awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | \ awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | \
sed 's/\"\:\"/\|/g' | \ sed 's/\"\:/\|/g' | \
sed 's/[\,]/ /g' | \ sed 's/[\,]/ /g' | \
sed 's/\"//g' | \ sed 's/\"//g' | \
grep -w $2) grep -w $2)