diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index bda7d5762..fddda66b2 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -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}); |