projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772e139
)
Typo.
author
Greg Sabino Mullane
<
[email protected]
>
Tue, 31 May 2011 13:59:56 +0000
(09:59 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Tue, 31 May 2011 13:59:56 +0000
(09:59 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index bda7d57627648dfbc721a385343dc64c80285d61..fddda66b269d22ee3ef4d5918f9f6ce66cd75f06 100755
(executable)
--- 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});