improve it the arc diddle a bit more
[spider.git] / perl / DXProt.pm
index 023daa334e9e03b9545a0d0b0598d6f7adab700e..f8a13407cec649ff03b2b2eea508d98e462cc898 100644 (file)
@@ -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}) * $tochan->{pingint}; 
-                                                                       if ($tochan->is_arcluster && $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