Author: toad
Date: 2008-02-29 15:14:44 +0000 (Fri, 29 Feb 2008)
New Revision: 18247
Modified:
trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
Log:
Show number of running offer replies
Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2008-02-29 13:42:49 UTC (rev 18246)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2008-02-29 15:14:44 UTC (rev 18247)
@@ -821,6 +821,8 @@
int numSSKRequests = node.getNumSSKRequests();
int numTransferringRequests =
node.getNumTransferringRequestSenders();
int numTransferringRequestHandlers =
node.getNumTransferringRequestHandlers();
+ int numCHKOfferReplys = node.getNumCHKOfferReplies();
+ int numSSKOfferReplys = node.getNumSSKOfferReplies();
if ((numInserts == 0) && (numRequests == 0) &&
(numTransferringRequests == 0) &&
(numCHKRequests == 0) && (numSSKRequests == 0)
&&
(numCHKInserts == 0) && (numSSKInserts == 0) &&
@@ -843,6 +845,10 @@
activityList.addChild("li",
L10n.getString("StatisticsToadlet.transferringRequests",
new String[] { "senders",
"receivers" }, new String[] { Integer.toString(numTransferringRequests),
Integer.toString(numTransferringRequestHandlers)}));
}
+ if (numCHKOfferReplys > 0 || numSSKOfferReplys > 0) {
+ activityList.addChild("li",
L10n.getString("StatisticsToadlet.offerReplys",
+ new String[] { "chk", "ssk" },
new String[] { Integer.toString(numCHKOfferReplys),
Integer.toString(numSSKOfferReplys) }));
+ }
return activityList;
}
}
Modified: trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
===================================================================
--- trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2008-02-29
13:42:49 UTC (rev 18246)
+++ trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2008-02-29
15:14:44 UTC (rev 18247)
@@ -978,6 +978,7 @@
StatisticsToadlet.jvmVersion=JVM Version: ${version}
StatisticsToadlet.maxMemory=Maximum Java memory: ${memory}
StatisticsToadlet.noRequests=Your node is not processing any requests right
now.
+StatisticsToadlet.offerReplys=Running offer replys: ${chk} CHK, ${ssk} SSK.
StatisticsToadlet.offeredKeyOutput=Sending offered keys output (not payload):
${total}
StatisticsToadlet.osArch=OS Architecture: ${arch}
StatisticsToadlet.osName=OS Name: ${name}