summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-05-31 13:59:56 +0000
committerGreg Sabino Mullane2011-05-31 13:59:56 +0000
commit2d749a7abd2b9cc417dd1987e6df69fab40eaea7 (patch)
treef4da93d0e0c0db64d3c04390a8367cd2ae19a241 /check_postgres.pl
parent772e139bfea9d9fa891a60f3b5ca98a19e93bb9d (diff)
Typo.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
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});