Perfdata added to check_squid.pl

This commit is contained in:
Tómas Edwardsson 2010-03-18 12:01:28 +00:00
parent d0fccf6649
commit 1d48e0aa06
1 changed files with 2 additions and 2 deletions

View File

@ -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/)
{