From 2d749a7abd2b9cc417dd1987e6df69fab40eaea7 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 31 May 2011 09:59:56 -0400 Subject: Typo. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') 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}); -- cgit v1.2.3