X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=e78d9a7a20fb0e2f2afe27e671e2cae00c430954;hb=765add8acca099e69f2b2cde2bb58a48a00852d3;hp=201013a0c1bd034b9e7abcbac159756dd7a8031e;hpb=8db1b590ed9b6b260fb4d437c120cccdd08bbb4d;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 201013a0..e78d9a7a 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -216,6 +216,10 @@ sub start my ($self, $line, $sort) = @_; my $call = $self->{call}; my $user = $self->{user}; + + # log it + my $host = $self->{conn}->{peerhost} || "unknown"; + Log('DXProt', "$call connected from $host"); # remember type of connection $self->{consort} = $line; @@ -267,8 +271,6 @@ sub start # send info to all logged in thingies $self->tell_login('loginn'); - - Log('DXProt', "$call connected"); } # @@ -1044,7 +1046,7 @@ sub normal shift @{$tochan->{pingtime}} if @{$tochan->{pingtime}} > 6; # cope with a missed ping, this means you must set the pingint large enough - if ($tochan->is_arcluster && $t > $tochan->{pingint} && $t < 2 * $tochan->{pingint} ) { + if ($t > $tochan->{pingint} && $t < 2 * $tochan->{pingint} ) { $t -= $tochan->{pingint}; } @@ -1052,7 +1054,7 @@ sub normal if (@{$tochan->{pingtime}} == 1) { $tochan->{pingave} = $t; } else { - $tochan->{pingave} = $tochan->{pingave} + (($t - $tochan->{pingave}) / 8); + $tochan->{pingave} = $tochan->{pingave} + (($t - $tochan->{pingave}) / 6); } # my $st; # for (@{$tochan->{pingtime}}) {