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 6607b4b4..0a7640a7 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -482,7 +482,7 @@ double offset_request(const char *host, int *status){
482 } else { 482 } else {
483 /* finally, calculate the average offset */ 483 /* finally, calculate the average offset */
484 for(i=0; i<servers[best_index].num_responses;i++){ 484 for(i=0; i<servers[best_index].num_responses;i++){
485 avg_offset+=servers[best_index].offset[j]; 485 avg_offset+=servers[best_index].offset[i];
486 } 486 }
487 avg_offset/=servers[best_index].num_responses; 487 avg_offset/=servers[best_index].num_responses;
488 } 488 }