From b132ffc0f1b1e3e0741617b57659983f07fabaaa Mon Sep 17 00:00:00 2001 From: Stefan Seidel Date: Tue, 22 Jun 2010 17:25:32 +0200 Subject: [PATCH] fixed issue when more than one server is asked (e.g. pool.ntp.org) --- plugins/other/ntpdate_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/other/ntpdate_ b/plugins/other/ntpdate_ index 025f3709..2bbeea52 100755 --- a/plugins/other/ntpdate_ +++ b/plugins/other/ntpdate_ @@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then exit 0 fi -DATA=($($NTPDATE -q $PEER | awk '/^server.*offset/{gsub(/,/,"");printf "%s %s", ($6*1000), ($8*1000);}')) +DATA=($($NTPDATE -q $PEER | awk '/^server.*offset/{gsub(/,/,"");if(dela==0||$8