diff options
-rw-r--r-- | plugins/check_ntp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index df6e02f..2854161 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
@@ -487,7 +487,9 @@ double offset_request(const char *host, int *stratum, int *status){ | |||
487 | avg_offset+=servers[best_index].offset[j]; | 487 | avg_offset+=servers[best_index].offset[j]; |
488 | } | 488 | } |
489 | avg_offset/=servers[best_index].num_responses; | 489 | avg_offset/=servers[best_index].num_responses; |
490 | *stratum = servers[best_index].stratum; | 490 | /* Stratum sent in normal packets is ingreased by 1 (i.e. stratum that |
491 | * would be displayed if we were a server) so we decrease it */ | ||
492 | *stratum = servers[best_index].stratum - 1; | ||
491 | } | 493 | } |
492 | 494 | ||
493 | /* cleanup */ | 495 | /* cleanup */ |