diff options
Diffstat (limited to 'plugins/check_ntp_time.c')
-rw-r--r-- | plugins/check_ntp_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index f856457..72dffbd 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
@@ -428,7 +428,7 @@ double offset_request(const char *host, int *status){ | |||
428 | } else { | 428 | } else { |
429 | /* finally, calculate the average offset */ | 429 | /* finally, calculate the average offset */ |
430 | for(i=0; i<servers[best_index].num_responses;i++){ | 430 | for(i=0; i<servers[best_index].num_responses;i++){ |
431 | avg_offset+=servers[best_index].offset[j]; | 431 | avg_offset+=servers[best_index].offset[i]; |
432 | } | 432 | } |
433 | avg_offset/=servers[best_index].num_responses; | 433 | avg_offset/=servers[best_index].num_responses; |
434 | } | 434 | } |