summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 013c24b..861d0ba 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -608,7 +608,7 @@ double jitter_request(const char *host, int *status){
608 } 608 }
609 } 609 }
610 610
611 rval /= num_valid; 611 rval = num_valid ? rval / num_valid : -1.0;
612 612
613 close(conn); 613 close(conn);
614 free(peers); 614 free(peers);