gpg: Signature made Tue Apr 15 10:30:09 2008 UTC using DSA key ID E43DA450
gpg: Good signature from "Matthew John Toseland <toad@amphibian.dyndns.org>"
On Tuesday 15 April 2008 09:28, Michael Rogers wrote:
> Daniel Cheng wrote:
> > 750 if(Math.abs(friendLocs[i] - myLoc) <=
> > Double.MIN_VALUE*2) continue;
>
> What's the purpose of this check and why does it use Math.abs instead of
> Location.distance?
To prevent unjustified zeros when there is a race condition or other error
causing there to be two nodes with the same location (e.g. when a swap ends
up swapping with a direct peer).
>
> Cheers,
> Michael