projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e19ac7
)
Show an "s" for perf output per Nagios guidelines.
author
Greg Sabino Mullane
<
[email protected]
>
Thu, 3 Feb 2011 17:54:43 +0000
(12:54 -0500)
committer
Greg Sabino Mullane
<
[email protected]
>
Thu, 3 Feb 2011 17:54:43 +0000
(12:54 -0500)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index b39d473f1818a0d8ff0be051226c70753ec4f4f8..0bbadf1f581ff3a62d909b62f77ce65ea7712bd5 100755
(executable)
--- 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}";
}