Author: toad
Date: 2007-06-27 22:51:12 +0000 (Wed, 27 Jun 2007)
New Revision: 13787
Modified:
trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
Log:
Show count for clock-problem peers
Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
2007-06-27 22:37:35 UTC (rev 13786)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
2007-06-27 22:51:12 UTC (rev 13787)
@@ -144,6 +144,7 @@
int numberOfBursting =
PeerNodeStatus.getPeerStatusCount(peerNodeStatuses,
PeerManager.PEER_NODE_STATUS_BURSTING);
int numberOfListening =
PeerNodeStatus.getPeerStatusCount(peerNodeStatuses,
PeerManager.PEER_NODE_STATUS_LISTENING);
int numberOfListenOnly =
PeerNodeStatus.getPeerStatusCount(peerNodeStatuses,
PeerManager.PEER_NODE_STATUS_LISTEN_ONLY);
+ int numberOfClockProblem =
PeerNodeStatus.getPeerStatusCount(peerNodeStatuses,
PeerManager.PEER_NODE_STATUS_CLOCK_PROBLEM);
int numberOfSimpleConnected = numberOfConnected +
numberOfRoutingBackedOff;
int numberOfNotConnected = numberOfTooNew + numberOfTooOld +
numberOfDisconnected + numberOfNeverConnected + numberOfDisabled +
numberOfBursting + numberOfListening + numberOfListenOnly;
@@ -275,6 +276,11 @@
peerStatsListenOnlyListItem.addChild("span",
new String[] { "class", "title", "style" }, new String[] { "peer_listen_only",
l10n("listenOnly"), "border-bottom: 1px dotted; cursor: help;" },
l10n("listenOnlyShort"));
peerStatsListenOnlyListItem.addChild("span",
":\u00a0" + numberOfListenOnly);
}
+ if (numberOfClockProblem > 0) {
+ HTMLNode peerStatsListenOnlyListItem =
peerStatsList.addChild("li").addChild("span");
+ peerStatsListenOnlyListItem.addChild("span",
new String[] { "class", "title", "style" }, new String[] {
"peer_clock_problem", l10n("clockProblem"), "border-bottom: 1px dotted; cursor:
help;" }, l10n("clockProblemShort"));
+ peerStatsListenOnlyListItem.addChild("span",
":\u00a0" + numberOfListenOnly);
+ }
// Peer routing backoff reason box
if(advancedModeEnabled) {
Modified: trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties
===================================================================
--- trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2007-06-27
22:37:35 UTC (rev 13786)
+++ trunk/freenet/src/freenet/l10n/freenet.l10n.en.properties 2007-06-27
22:51:12 UTC (rev 13787)
@@ -101,6 +101,8 @@
DarknetConnectionsToadlet.cantFetchNoderefURL=Unable to retrieve node
reference from ${url}. Please try again.
DarknetConnectionsToadlet.cantParseTryAgain=Unable to parse the given text as
a node reference: (${error}). Please try again.
DarknetConnectionsToadlet.cantParseWrongEnding=Unable to parse the node
reference: It should end with End on a line by itself, but it ends with: ${end}
+DarknetConnectionsToadlet.clockProblem=The node's clock is more than 24 hours
out of date (or yours is)
+DarknetConnectionsToadlet.clockProblemShort=Clock problem
DarknetConnectionsToadlet.confirmRemoveNode=Are you sure you wish to remove
"${name}" ? Before it has at least one week downtime, it's not recommended to
do so, as it may be down only temporarily, and many users cannot run their
nodes 24x7.
DarknetConnectionsToadlet.confirmRemoveNodeTitle=Please confirm
DarknetConnectionsToadlet.confirmRemoveNodeWarningTitle=Node Removal