aboutsummaryrefslogtreecommitdiff
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 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){
}
}
- rval /= num_valid;
+ rval = num_valid ? rval / num_valid : -1.0;
close(conn);
free(peers);