From 1d48e0aa06a09078e0c44dde61b38147651ebd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Thu, 18 Mar 2010 12:01:28 +0000 Subject: [PATCH] Perfdata added to check_squid.pl --- check_squid/trunk/check_squid.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/) {