From: Greg Sabino Mullane Date: Thu, 3 Feb 2011 17:54:43 +0000 (-0500) Subject: Show an "s" for perf output per Nagios guidelines. X-Git-Tag: 2.18.0~107 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=880fb450e9a7f5ea57718e8e50e7748d91d04ea6;p=check_postgres.git Show an "s" for perf output per Nagios guidelines. --- diff --git a/check_postgres.pl b/check_postgres.pl index b39d473f1..0bbadf1f5 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1100,7 +1100,7 @@ sub add_response { $db->{host} eq '' ? '' : qq{(host:$db->{host}) }, defined $db->{port} ? ($db->{port} eq $opt{defaultport} ? '' : qq{(port=$db->{port}) }) : ''; $header =~ s/\s+$//; - my $perf = ($opt{showtime} and $db->{totaltime} and $action ne 'bloat') ? "time=$db->{totaltime}" : ''; + my $perf = ($opt{showtime} and $db->{totaltime} and $action ne 'bloat') ? "time=$db->{totaltime}s" : ''; if ($db->{perf}) { $perf .= " $db->{perf}"; }