Typo.
authorGreg Sabino Mullane <[email protected]>
Tue, 31 May 2011 13:59:56 +0000 (09:59 -0400)
committerGreg Sabino Mullane <[email protected]>
Tue, 31 May 2011 13:59:56 +0000 (09:59 -0400)
check_postgres.pl

index bda7d57627648dfbc721a385343dc64c80285d61..fddda66b269d22ee3ef4d5918f9f6ce66cd75f06 100755 (executable)
@@ -4036,7 +4036,7 @@ sub check_hot_standby_delay {
     }
 
     ## If the slave is "db1" and master "db2", go ahead and switch them around for clearer output
-    if (1 == $slave == 1) {
+    if (1 == $slave) {
         ($slave, $master) = (2, 1);
         for my $k (qw(host port dbname dbuser dbpass)) {
             ($opt{$k}, $opt{$k . 2}) = ($opt{$k . 2}, $opt{$k});