On Wed, Apr 13, 2011 at 09:48:46AM -0700, Bill Unruh wrote:
> On Wed, 13 Apr 2011, Miroslav Lichvar wrote:
> >sd = sqrt(inst->variance)
> >sd_weight = 1.0 + SD_TO_DIST_RATIO * (peer_distances[i] - min_distance) / sd;
> >weights[i] = sd_weight * sd_weight;
> 
> That use of sd in the weights is new in the code. It used to be be that the 
> weighting was
> purely by the ratio of the excess distance over the min_distance. Not sure
> why the sd is in there instead now. Did you add it?

Yes, I did. The idea behind it is that adding a constant to the
distance shouldn't change the weights. Two servers with equal
jitters, but different delays should give the same results.

-- 
Miroslav Lichvar

---
To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to