forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p' (head 600cd73c4b46b7ba8c421149785f6245afa47487)
to branch 'i2p.i2p.str4d.ui' (head d5b54214bfe1bf5203f614600b916346a10f26dd)
This commit is contained in:
@ -276,7 +276,7 @@
|
||||
<!-- we really don't need all of these -->
|
||||
<fileset dir="../../../installer/resources/themes/console/images/" />
|
||||
</copy>
|
||||
<copy file="../../../installer/resources/themes/console/dark/images/transparent.gif"
|
||||
<copy file="../../../installer/resources/themes/console/images/transparent.gif"
|
||||
todir="build/standalone-resources/.resources/themes/snark/ubergine/images" />
|
||||
<copy file="../../../installer/resources/themes/console/dark/images/header.png"
|
||||
todir="build/standalone-resources/.resources/themes/snark/ubergine/images" />
|
||||
|
@ -160,7 +160,7 @@ public class Peer implements Comparable<Peer>
|
||||
if (state != null) {
|
||||
String r = state.getRequests();
|
||||
if (r != null)
|
||||
return sock.toString() + "<br>Requests: " + r;
|
||||
return sock.toString() + "<br><b>Requests:</b> <span class=\"debugRequests\">" + r + "</span>";
|
||||
}
|
||||
return sock.toString();
|
||||
}
|
||||
|
@ -1078,7 +1078,7 @@ public class SnarkManager implements CompleteListener {
|
||||
if (theme != null) {
|
||||
if(!theme.equals(_config.getProperty(PROP_THEME))) {
|
||||
_config.setProperty(PROP_THEME, theme);
|
||||
addMessage(_t("{0} theme loaded, return to main i2psnark page to view.", theme));
|
||||
addMessage(_t("{0} theme loaded.", theme));
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ class DHTNodes {
|
||||
* @since 0.9.4
|
||||
*/
|
||||
public void renderStatusHTML(StringBuilder buf) {
|
||||
buf.append(_kad.toString().replace("\n", "<br>\n"));
|
||||
buf.append(_kad.toString().replace("\n", "<br><hr class=\"debug\">\n"));
|
||||
}
|
||||
|
||||
/** */
|
||||
|
@ -140,7 +140,7 @@ class DHTTracker {
|
||||
* Debug info, HTML formatted
|
||||
*/
|
||||
public void renderStatusHTML(StringBuilder buf) {
|
||||
buf.append("DHT tracker: ").append(_torrentCount).append(" torrents ")
|
||||
buf.append("<b>DHT tracker:</b> ").append(_torrentCount).append(" torrents ")
|
||||
.append(_peerCount).append(" peers ")
|
||||
.append(DataHelper.formatDuration(_expireTime)).append(" expiration<br>");
|
||||
}
|
||||
|
@ -682,17 +682,17 @@ public class KRPC implements I2PSessionMuxedListener, DHT {
|
||||
public String renderStatusHTML() {
|
||||
long uptime = Math.max(1000, _context.clock().now() - _started);
|
||||
StringBuilder buf = new StringBuilder(256);
|
||||
buf.append("<br><b>DHT DEBUG</b><br>TX: ").append(_txPkts.get()).append(" pkts / ")
|
||||
buf.append("<br><hr class=\"debug\"><b>DHT DEBUG</b><br><hr class=\"debug\"><hr><b>TX:</b> ").append(_txPkts.get()).append(" pkts / ")
|
||||
.append(DataHelper.formatSize2(_txBytes.get())).append("B / ")
|
||||
.append(DataHelper.formatSize2(_txBytes.get() * 1000 / uptime)).append("Bps<br>" +
|
||||
"RX: ").append(_rxPkts.get()).append(" pkts / ")
|
||||
"<b>RX:</b> ").append(_rxPkts.get()).append(" pkts / ")
|
||||
.append(DataHelper.formatSize2(_rxBytes.get())).append("B / ")
|
||||
.append(DataHelper.formatSize2(_rxBytes.get() * 1000 / uptime)).append("Bps<br>" +
|
||||
"DHT Peers: ").append( _knownNodes.size()).append("<br>" +
|
||||
"Blacklisted: ").append(_blacklist.size()).append("<br>" +
|
||||
"Sent tokens: ").append(_outgoingTokens.size()).append("<br>" +
|
||||
"Rcvd tokens: ").append(_incomingTokens.size()).append("<br>" +
|
||||
"Pending queries: ").append(_sentQueries.size()).append("<br>");
|
||||
"<b>DHT Peers:</b> ").append( _knownNodes.size()).append("<br>" +
|
||||
"<b>Blacklisted:</b> ").append(_blacklist.size()).append("<br>" +
|
||||
"<b>Sent tokens:</b> ").append(_outgoingTokens.size()).append("<br>" +
|
||||
"<b>Rcvd tokens:</b> ").append(_incomingTokens.size()).append("<br>" +
|
||||
"<b>Pending queries:</b> ").append(_sentQueries.size()).append("<br><br><hr class=\"debug\">");
|
||||
_tracker.renderStatusHTML(buf);
|
||||
_knownNodes.renderStatusHTML(buf);
|
||||
return buf.toString();
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user