summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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 013c24bb..861d0ba4 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);