Author: dconrado
Date: 2009-04-15 10:21:51 +0000 (Wed, 15 Apr 2009)
New Revision: 26836
Modified:
trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
Log:
Show total data transferred to/from a peer over its entire lifetime. Adding a
new column on Connections to friends/strangers in advanced interface mode with
total traffic since source after total traffic.
Modified: trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
2009-04-15 10:14:52 UTC (rev 26835)
+++ trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
2009-04-15 10:21:51 UTC (rev 26836)
@@ -117,10 +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_startup")){
- long total1 =
firstNode.getTotalInputBytes()+firstNode.getTotalInputSinceStartup();
- long total2 =
secondNode.getTotalOutputBytes()+secondNode.getTotalOutputSinceStartup();
- return compareLongs(total1, total2);
+ }else
if(sortBy.equals("total_traffic_since_startup")){
+ long total1 =
firstNode.getTotalInputSinceStartup()+firstNode.getTotalOutputSinceStartup();
+ long total2 =
secondNode.getTotalInputSinceStartup()+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")){
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs