Added suffix "s" for seconds in perfdata output

This commit is contained in:
Bernd Arnold 2018-06-03 16:42:34 +02:00
parent 44816b4979
commit d5fbf8ae93

View file

@ -137,7 +137,7 @@ if ( $opt_s ) {
$state = $ERRORS{$state_str};
# Perfdata support
print "$msg|uptime=$uptime_seconds;$opt_w;$opt_c;0\n";
print "$msg|uptime=${uptime_seconds}s;$opt_w;$opt_c;0\n";
exit $state;