diff --git a/speedtest_ping b/speedtest_ping index 299d79c..4c5009e 100755 --- a/speedtest_ping +++ b/speedtest_ping @@ -19,7 +19,7 @@ case $1 in OUTPUT=`cat /var/log/munin/speedtest-results.txt` PING=`echo "$OUTPUT" | grep Latency | awk '{ print $2 }'` -JITTER=`echo "$OUTPUT" | grep Latency | awk '{ print $4 }' | cut -c2-` +JITTER=`echo "$OUTPUT" |grep "Idle Latency" | awk '{ print $6 }' | sed 's/.$//'` echo "ping.value $PING" echo "jitter.value $JITTER"