summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes/AnotherDNS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping/probes/AnotherDNS.pm')
-rw-r--r--lib/Smokeping/probes/AnotherDNS.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/AnotherDNS.pm b/lib/Smokeping/probes/AnotherDNS.pm
index 185426d..48ff924 100644
--- a/lib/Smokeping/probes/AnotherDNS.pm
+++ b/lib/Smokeping/probes/AnotherDNS.pm
@@ -88,10 +88,10 @@ sub pingone ($) {
my $timeleft = $mininterval - $elapsed;
sleep $timeleft if $timeleft > 0;
}
- my $t0 = [gettimeofday];
+ my $t0 = [gettimeofday()];
$sock->send($packet);
my ($ready) = $sel->can_read($timeout);
- my $t1 = [gettimeofday];
+ my $t1 = [gettimeofday()];
$elapsed = tv_interval( $t0, $t1 );
if ( defined $ready ) {
my $buf = '';