summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-02-03 17:54:43 +0000
committerGreg Sabino Mullane2011-02-03 17:54:43 +0000
commit880fb450e9a7f5ea57718e8e50e7748d91d04ea6 (patch)
tree057c0c072d1e4c8dd971d4deca050fdee2fe2f18 /check_postgres.pl
parent0e19ac78a0c09598decba328f841a0269f0bcac9 (diff)
Show an "s" for perf output per Nagios guidelines.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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 '<none>' ? '' : 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}";
}