diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-18 09:00:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 09:00:12 (GMT) |
commit | d6d2254312aede137dcd998a4cdfa26ecd07e379 (patch) | |
tree | 2fc0272f526bb6c53ccf1888764f749acfbd7ee4 /plugins/utils.c | |
parent | 4549a9524349c4384c0a7a2ca8662a418fc8fbe5 (diff) | |
parent | e030c2d17c10446bda840d66f6753b9bf573d715 (diff) | |
download | monitoring-plugins-d6d2254312aede137dcd998a4cdfa26ecd07e379.tar.gz |
Merge pull request #1697 from RincewindsHat/dont_show_rta_if_useless
check_ping: Do not show RTA if no connection was possible
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index ebdae2e..17dd581 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -589,10 +589,12 @@ char *perfdata (const char *label, | |||
589 | xasprintf (&data, "%s;", data); | 589 | xasprintf (&data, "%s;", data); |
590 | 590 | ||
591 | if (minp) | 591 | if (minp) |
592 | xasprintf (&data, "%s%ld", data, minv); | 592 | xasprintf (&data, "%s%ld;", data, minv); |
593 | else | ||
594 | xasprintf (&data, "%s;", data); | ||
593 | 595 | ||
594 | if (maxp) | 596 | if (maxp) |
595 | xasprintf (&data, "%s;%ld", data, maxv); | 597 | xasprintf (&data, "%s%ld", data, maxv); |
596 | 598 | ||
597 | return data; | 599 | return data; |
598 | } | 600 | } |