diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 10:42:43 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-05 10:42:43 +0100 |
| commit | 7b226257b7df01dd80af07c39e0f49fdcf84cee4 (patch) | |
| tree | 86670ee94a05f75fc3bef709216730fde89f46fd /plugins | |
| parent | cadcfaecbec56d2ecf44bb33bb394ca815240127 (diff) | |
| download | monitoring-plugins-7b226257b7df01dd80af07c39e0f49fdcf84cee4.tar.gz | |
check_ntp_time: reduce number of significant bits a bit
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_ntp_time.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index 8d97f2b9..7c3fc24d 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
| @@ -643,11 +643,12 @@ int main(int argc, char *argv[]) { | |||
| 643 | mp_exit(overall); | 643 | mp_exit(overall); |
| 644 | } | 644 | } |
| 645 | 645 | ||
| 646 | xasprintf(&sc_offset.output, "Offset: %.10g s", offset_result.offset); | 646 | xasprintf(&sc_offset.output, "Offset: %.6fs", offset_result.offset); |
| 647 | 647 | ||
| 648 | mp_perfdata pd_offset = perfdata_init(); | 648 | mp_perfdata pd_offset = perfdata_init(); |
| 649 | pd_offset = mp_set_pd_value(pd_offset, fabs(offset_result.offset)); | 649 | pd_offset = mp_set_pd_value(pd_offset, fabs(offset_result.offset)); |
| 650 | pd_offset.label = "offset"; | 650 | pd_offset.label = "offset"; |
| 651 | pd_offset.uom = "s"; | ||
| 651 | pd_offset = mp_pd_set_thresholds(pd_offset, config.offset_thresholds); | 652 | pd_offset = mp_pd_set_thresholds(pd_offset, config.offset_thresholds); |
| 652 | 653 | ||
| 653 | sc_offset = mp_set_subcheck_state(sc_offset, mp_get_pd_status(pd_offset)); | 654 | sc_offset = mp_set_subcheck_state(sc_offset, mp_get_pd_status(pd_offset)); |
