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:
3c29a89
)
Fix missing arg problem in msg() calls. Remove debug line.
author
Greg Sabino Mullane
<greg@endpoint.com>
Fri, 20 Feb 2009 14:49:31 +0000
(09:49 -0500)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Fri, 20 Feb 2009 14:49:31 +0000
(09:49 -0500)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 8f4c9d30639efff303c25cdbfcdf09d78ba46b1a..f49f00f5eb063ced775ed022975401eb2d9cb039 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-718,7
+718,8
@@
sub msg {
my $x=1;
{
- last unless $msg =~ s/\$$x/$_[$x-1]/ge;
+ my $val = $_[$x-1];
+ last unless $msg =~ s/\$$x/$val/g;
$x++;
redo;
}
@@
-2115,7
+2116,6
@@
sub check_backends {
for $db (@{$info->{db}}) {
my ($limit,$total,$grandtotal) = (0,0,0);
- warn $db->{slurp};
SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+)\s+\|\s+(\w+)\s*/gsm) {
$grandtotal++;
$limit ||= $2;