diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-04-02 06:00:59 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-04-02 06:00:59 +0000 |
commit | 7856e1ba2b456c9896187230d1bd67a5fdab8942 (patch) | |
tree | 18f8815d06ab151242ecbf49046b81ef82bdabec /plugins/check_ntp.c | |
parent | 0ab3f7be5dca0265bf7816acbb8dd039a2ec99c4 (diff) | |
download | monitoring-plugins-7856e1ba2b456c9896187230d1bd67a5fdab8942.tar.gz |
Seems like we don't get any jitter sometimes. While this needs to be fixed we should at least handle it gracefully.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1670 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r-- | plugins/check_ntp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 9fbdedd6..8b49928a 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
@@ -595,7 +595,8 @@ double jitter_request(const char *host, int *status){ | |||
595 | if(verbose) { | 595 | if(verbose) { |
596 | printf("parsing jitter from peer %.2x: ", peers[i].assoc); | 596 | printf("parsing jitter from peer %.2x: ", peers[i].assoc); |
597 | } | 597 | } |
598 | startofvalue = strchr(req.data, '=') + 1; | 598 | startofvalue = strchr(req.data, '='); |
599 | if(startofvalue != NULL) startofvalue++; | ||
599 | if(startofvalue != NULL) { | 600 | if(startofvalue != NULL) { |
600 | jitter = strtod(startofvalue, &nptr); | 601 | jitter = strtod(startofvalue, &nptr); |
601 | } | 602 | } |