From: minima Date: Fri, 7 Sep 2001 21:43:15 +0000 (+0000) Subject: try a better arc diddle X-Git-Tag: R_1_48~44 X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=commitdiff_plain;h=874ee7e39c3d38f5b52226ced9486af33a7505c4 try a better arc diddle --- diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 023daa33..d6ea6917 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -1044,8 +1044,8 @@ sub normal shift @{$tochan->{pingtime}} if @{$tochan->{pingtime}} > 6; # cope with a missed ping, this means you must set the pingint large enough - my $miss = ($nopings-$tochan->{nopings}) * $tochan->{pingint}; - if ($tochan->is_arcluster && $t > $miss && $t < $miss + $tochan->{nopings} ) { + my $miss = ($nopings-$tochan->{nopings}+1) * $tochan->{pingint}; + if ($tochan->is_arcluster && $miss > 0 && $t > $miss && $t < $miss + $tochan->{nopings} ) { $t -= $miss; }