X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FInvestigate.pm;h=e1cb9b2801c46e72d41b4527563689b0b98b2e1a;hb=eb4918707eb5fa97782c3c15aafdbc8cce44d446;hp=5fce74b652d4102bf201953e46529f55a186d82b;hpb=b70be747913c158cb53bc6f7277f803f93bbb98d;p=spider.git diff --git a/perl/Investigate.pm b/perl/Investigate.pm index 5fce74b6..e1cb9b28 100644 --- a/perl/Investigate.pm +++ b/perl/Investigate.pm @@ -122,8 +122,8 @@ sub process { while (my ($k, $v) = each %list) { if ($v->{state} eq 'start') { - my $v = $via{$v->{via}} || 0; - if ($main::systime > $v+$pingint) { + my $via = $via{$v->{via}} || 0; + if ($main::systime > $via+$pingint) { DXProt::addping($main::mycall, $v->{call}, $v->{via}); $v->{start} = $lastping = $main::systime; dbg("Investigate: ping sent to $v->{call} via $v->{via}") if isdbg('investigate');