diff --git a/check_squid/trunk/check_squid.pl b/check_squid/trunk/check_squid.pl index 8058cc3..79ea5a8 100644 --- a/check_squid/trunk/check_squid.pl +++ b/check_squid/trunk/check_squid.pl @@ -89,13 +89,13 @@ if ($urluser) $h->authorization_basic($urluser, $urlpass); } -$t0 = [gettimeofday]; +my $t0 = [gettimeofday]; $req = HTTP::Request->new('GET', $url, $h); $res = $ua->request($req); -$elapsed = tv_interval ( $t0 ); +my $elapsed = tv_interval ( $t0 ); if ($res->status_line =~ /^$expectstatus/) {