From: minima Date: Fri, 7 Sep 2001 23:11:18 +0000 (+0000) Subject: improve it the arc diddle a bit more X-Git-Tag: R_1_48~43 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9cff23c7050696bfe1dee906157416c49739f07;p=spider.git improve it the arc diddle a bit more --- diff --git a/perl/DXProt.pm b/perl/DXProt.pm index d6ea6917..f8a13407 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -1044,9 +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}+1) * $tochan->{pingint}; - if ($tochan->is_arcluster && $miss > 0 && $t > $miss && $t < $miss + $tochan->{nopings} ) { - $t -= $miss; + if ($tochan->is_arcluster && $t > $tochan->{pingint} && $t < 2 * $tochan->{pingint} ) { + $t -= $tochan->{pingint}; } # calc smoothed RTT a la TCP