mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
check_ntp_time: actually accept offset if known
This commit is contained in:
parent
b35853ee4e
commit
16daa06e43
1 changed files with 1 additions and 0 deletions
|
|
@ -478,6 +478,7 @@ static offset_request_wrapper offset_request(const char *host, const char *port,
|
|||
if (best_index < 0) {
|
||||
result.offset_result = STATE_UNKNOWN;
|
||||
} else {
|
||||
result.offset_result = STATE_OK;
|
||||
/* finally, calculate the average offset */
|
||||
for (int i = 0; i < servers[best_index].num_responses; i++) {
|
||||
avg_offset += servers[best_index].offset[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue