From 3b10114dda50f33efdc891d52967f017013c2b76 Mon Sep 17 00:00:00 2001 From: Stefan Seidel Date: Tue, 6 Jul 2010 10:22:50 +0200 Subject: [PATCH] Fixed spelling mistake and erronous values when ntp server is not available - this might leave some empty spots in the graph, but at least won't read false values. --- plugins/other/ntpdate_ | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/other/ntpdate_ b/plugins/other/ntpdate_ index 2bbeea52..34778c80 100755 --- a/plugins/other/ntpdate_ +++ b/plugins/other/ntpdate_ @@ -29,7 +29,7 @@ if [ "$PEER" = "" ]; then fi if [ "$1" = "config" ]; then - echo "graph_title NTP offset and dealy to peer $PEER" + echo "graph_title NTP offset and delay to peer $PEER" echo "graph_args --base 1000 --vertical-label msec" echo "offset.label Offset" echo "offset.draw LINE2" @@ -38,10 +38,12 @@ if [ "$1" = "config" ]; then exit 0 fi +LANG=en_US DATA=($($NTPDATE -q $PEER | awk '/^server.*offset/{gsub(/,/,"");if(dela==0||$8