summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-11-17 15:45:17 +0100
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-11-17 15:45:17 +0100
commit1c53c4f541db3afdc3a2975121b69064d53f7ef3 (patch)
treeb5d6b4d4ec3814719b69225f23b82f039f543764 /plugins/utils.c
parent0214ec1918abf589f15b70948ddba641a9729ce3 (diff)
downloadmonitoring-plugins-1c53c4f541db3afdc3a2975121b69064d53f7ef3.tar.gz
homogenize perfdata function and fix small bug with missing semicolon
Diffstat (limited to 'plugins/utils.c')
-rw-r--r--plugins/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index ebdae2e1..17dd5814 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}