From: Greg Sabino Mullane Date: Fri, 20 Feb 2009 14:49:31 +0000 (-0500) Subject: Fix missing arg problem in msg() calls. Remove debug line. X-Git-Tag: 2.9.0~161 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=54b650217c94455592a7ebb4f1a3bd597869d9d3;p=check_postgres.git Fix missing arg problem in msg() calls. Remove debug line. --- diff --git a/check_postgres.pl b/check_postgres.pl index 8f4c9d306..f49f00f5e 100755 --- 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;