diff options
author | Greg Sabino Mullane | 2011-02-03 05:58:03 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-02-03 05:58:03 +0000 |
commit | 8a11ac14127fe4df1e43d3898f1f149110dd0d67 (patch) | |
tree | c1aef5b8970f5c6ae7400e85f37c51932b670a20 /check_postgres.pl | |
parent | 8f54429bd4cec882f2dd8876f88da4b5d9101ca9 (diff) |
Cuddle police.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index dac2d6a5a..dfb47924a 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2524,7 +2524,8 @@ sub validate_size_or_percent_with_oper { ($r) = validate_range({ type => 'size or percent' }); if ($l =~ s/%$//) { ($l, $r) = ($r, $l); - } else { + } + else { $r =~ s/%$//; } push @subs, $op eq '&&' || lc $op eq 'and' ? sub { @@ -7047,12 +7048,14 @@ sub check_txn_idle { add_critical msg('txnidle-for-msg', $count, $ctime, $max); $ok = 0; } - } elsif (length $ctime) { + } + elsif (length $ctime) { if ($max >= $ctime) { add_critical msg('txnidle-msg', $max); $ok = 0; } - } elsif (length $ccount) { + } + elsif (length $ccount) { if ($count >= $ccount) { add_critical msg('txnidle-count-msg', $count); $ok = 0; @@ -7065,12 +7068,14 @@ sub check_txn_idle { add_warning msg('txnidle-for-msg', $count, $wtime, $max); $ok = 0; } - } elsif (length $wtime) { + } + elsif (length $wtime) { if ($max >= $wtime) { add_warning msg('txnidle-msg', $max); $ok = 0; } - } elsif (length $wcount) { + } + elsif (length $wcount) { if ($count >= $wcount) { add_warning msg('txnidle-count-msg', $count); $ok = 0; |