Cuddle police.
authorGreg Sabino Mullane <[email protected]>
Thu, 3 Feb 2011 05:58:03 +0000 (00:58 -0500)
committerGreg Sabino Mullane <[email protected]>
Thu, 3 Feb 2011 05:58:03 +0000 (00:58 -0500)
check_postgres.pl

index dac2d6a5aeeb880f9288343de6e3a9394c5769aa..dfb47924a9c142863c419c573ce5f57ec717c3f1 100755 (executable)
@@ -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;