Show an "s" for perf output per Nagios guidelines.
authorGreg Sabino Mullane <[email protected]>
Thu, 3 Feb 2011 17:54:43 +0000 (12:54 -0500)
committerGreg Sabino Mullane <[email protected]>
Thu, 3 Feb 2011 17:54:43 +0000 (12:54 -0500)
check_postgres.pl

index b39d473f1818a0d8ff0be051226c70753ec4f4f8..0bbadf1f581ff3a62d909b62f77ce65ea7712bd5 100755 (executable)
@@ -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}";
     }