projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
874ee7e
)
improve it the arc diddle a bit more
author
minima
<minima>
Fri, 7 Sep 2001 23:11:18 +0000
(23:11 +0000)
committer
minima
<minima>
Fri, 7 Sep 2001 23:11:18 +0000
(23:11 +0000)
perl/DXProt.pm
patch
|
blob
|
history
diff --git
a/perl/DXProt.pm
b/perl/DXProt.pm
index d6ea691796e82c3078f04d8aa1c41cc6e4c50b5e..f8a13407cec649ff03b2b2eea508d98e462cc898 100644
(file)
--- 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
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
}
# calc smoothed RTT a la TCP