[freenet-cvs] r11244 - trunk/freenet/src/freenet/clients/http
toad
toad at amphibian.dyndns.org
Wed Dec 6 16:43:33 UTC 2006
They _can_ be equal... hopefully for a short time only, but it is
possible.
On Tue, Dec 05, 2006 at 07:09:39PM +0000, cvs at freenetproject.org wrote:
> Author: nextgens
> Date: 2006-12-05 19:09:38 +0000 (Tue, 05 Dec 2006)
> New Revision: 11244
>
> Modified:
> trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
> Log:
> I finally got it working \o/ ... @cvs is fixed too
>
>
> Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java 2006-12-05 19:03:20 UTC (rev 11243)
> +++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java 2006-12-05 19:09:38 UTC (rev 11244)
> @@ -84,7 +84,7 @@
> }else if(sortBy.equals("address")){
> result = firstNode.getPeerAddress().compareToIgnoreCase(secondNode.getPeerAddress());
> }else if(sortBy.equals("location")){
> - result = (int) firstNode.getLocation() - (int) secondNode.getLocation();
> + result = (firstNode.getLocation() - secondNode.getLocation()) < 0 ? -1 : 1; // Shouldn't be equal anyway
> }else if(sortBy.equals("version")){
> result = Version.getArbitraryBuildNumber(firstNode.getVersion()) - Version.getArbitraryBuildNumber(secondNode.getVersion());
> }else if(sortBy.equals("privnote")){
>
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://emu.freenetproject.org/pipermail/cvs/attachments/20061206/273f838d/attachment.pgp
More information about the cvs
mailing list