Hello,
> Modified: trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java > > =================================================================== > > --- trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java > 2009-04-14 19:23:40 UTC (rev 26797) > > +++ trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java > 2009-04-14 19:24:07 UTC (rev 26798) > > @@ -117,6 +117,10 @@ > > long total1 = > firstNode.getTotalInputBytes()+firstNode.getTotalOutputBytes(); > > long total2 = > secondNode.getTotalInputBytes()+secondNode.getTotalOutputBytes(); > > return compareLongs(total1, total2); > > + }else > if(sortBy.equals("total_traffic_since_restart")){ > > + long total1 = > firstNode.getTotalInputBytes()+firstNode.getTotalInputSinceSource(); > > + long total2 = > secondNode.getTotalInputBytes()+secondNode.getTotalOutputSinceSource(); > > You are not consistent here. input + input vs input + output ??? It is solved. long total1 = firstNode.getTotalInputBytes()+firstNode.getTotalInputSinceStartup(); long total2 = secondNode.getTotalOutputBytes()+secondNode.getTotalOutputSinceStartup(); > > > > + return compareLongs(total1, total2); > > }else if(sortBy.equals("selection_percentage")){ > > return > Double.compare(firstNode.getSelectionRate(), > secondNode.getSelectionRate()); > > }else if(sortBy.equals("time_delta")){ > > @@ -402,6 +406,7 @@ > > > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "time_routable")).addChild("#", "%\u00a0Time > Routable"); > > > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "selection_percentage")).addChild("#", > "%\u00a0Selection"); > > > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "total_traffic")).addChild("#", > "Total\u00a0Traffic\u00a0 > (in/out/resent)"); > > + > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "total_traffic_since_restart")).addChild("#", > "Total\u00a0Traffic\u00a0 > (in/out) since restart"); > > That's the column header, where is the actual column data? It is solved. peerTableHeaderRow.addChild("th").addChild("a", "href", sortString(isReversed, "total_traffic_since_startup")).addChild("#", "Total\u00a0Traffic\u00a0(in/out) since startup"); // total traffic column startup peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputSinceStartup())+" / "+SizeUtil.formatSize(peerNodeStatus.getTotalOutputSinceStartup())); > > > peerTableHeaderRow.addChild("th", > "Congestion\u00a0Control"); > > > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "time_delta")).addChild("#", "Time\u00a0Delta"); > > > peerTableHeaderRow.addChild("th").addChild("a", "href", > sortString(isReversed, "uptime")).addChild("#", "Reported\u00a0Uptime"); > -- bye --david
_______________________________________________ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl