summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_ntp.c3
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 }