From: minima Date: Sat, 8 Sep 2001 02:17:21 +0000 (+0000) Subject: make the diddle for missed pings general X-Git-Tag: R_1_48~41 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=6be3e1147b774c96b9d35c4c835f913e9c5e0ffc;p=spider.git make the diddle for missed pings general change the coeff from 8 to 6 to make it converge a bit quicker --- diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 201013a0..f6a32cce 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -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}}) {