]> dxcluster.org Git - spider.git/commitdiff
make the diddle for missed pings general
authorminima <minima>
Sat, 8 Sep 2001 02:17:21 +0000 (02:17 +0000)
committerminima <minima>
Sat, 8 Sep 2001 02:17:21 +0000 (02:17 +0000)
change the coeff from 8 to 6 to make it converge a bit quicker

perl/DXProt.pm

index 201013a0c1bd034b9e7abcbac159756dd7a8031e..f6a32cce44f9ef97be30adf9cac8008de470032a 100644 (file)
@@ -1044,7 +1044,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 +1052,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}}) {