X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FInvestigate.pm;h=52161a353c25a42a72994c67c2fc520ed235a591;hb=fd0a34c34ad4112ee21e0730f7307498ff437e18;hp=e1cb9b2801c46e72d41b4527563689b0b98b2e1a;hpb=eb4918707eb5fa97782c3c15aafdbc8cce44d446;p=spider.git diff --git a/perl/Investigate.pm b/perl/Investigate.pm index e1cb9b28..52161a35 100644 --- a/perl/Investigate.pm +++ b/perl/Investigate.pm @@ -10,7 +10,7 @@ # # Copyright (c) 2004 Dirk Koopman, G1TLH # -# $Id$ +# # use strict; @@ -21,12 +21,6 @@ use DXDebug; use DXUtil; -use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; - use vars qw (%list %valid $pingint $maxpingwait); $pingint = 5; # interval between pings for each investigation @@ -95,7 +89,7 @@ sub handle_ping $user->set_believe($self->{call}); $user->put; } - my $dxchan = DXChannel->get($self->{via}); + my $dxchan = DXChannel::get($self->{via}); if ($dxchan) { dbg("Investigate: sending PC19 for $self->{call}") if isdbg('investigate'); foreach my $pc (@{$self->{pcxx}}) { @@ -124,7 +118,7 @@ sub process if ($v->{state} eq 'start') { my $via = $via{$v->{via}} || 0; if ($main::systime > $via+$pingint) { - DXProt::addping($main::mycall, $v->{call}, $v->{via}); + DXXml::Ping::add($main::me, $v->{call}, $v->{via}); $v->{start} = $lastping = $main::systime; dbg("Investigate: ping sent to $v->{call} via $v->{via}") if isdbg('investigate'); $v->chgstate('waitping');