Merge pull request #1194 from pi-hole/fix/chronometer-summary

Fix chronometer interpreting summaryRaw
This commit is contained in:
Adam Warner 2017-01-29 18:35:51 +00:00 committed by GitHub
commit 55d39595e1

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)