r27167 - trunk/freenet/src/freenet/clients/http
[email protected] Tue, 21 Apr 2009 19:02:51 +0000
| Newsgroups | gmane.network.freenet.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: toad
Date: 2009-04-21 19:02:50 +0000 (Tue, 21 Apr 2009)
New Revision: 27167
Modified:
trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
Log:
More compact blocks, only show if advanced mode is on by default
Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2009-04-21 18:58:13 UTC (rev 27166)
+++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2009-04-21 19:02:50 UTC (rev 27167)
@@ -491,6 +491,7 @@
String mimeType = null;
String referer = sanitizeReferer(ctx);
FetchException fe = null;
+
MultiValueTable<String,String> headers = ctx.getHeaders();
String ua = headers.get("user-agent");
@@ -520,12 +521,9 @@
infoboxContent.addChild("p", "Filename: "+key.getPreferredFilename());
infoboxContent.addChild("p", "Key: "+key);
if(fr.mimeType != null) infoboxContent.addChild("p", "Content type: "+mimeType);
- infoboxContent.addChild("p", "Total blocks: "+fr.totalBlocks);
- infoboxContent.addChild("p", "Required blocks: "+fr.requiredBlocks);
- infoboxContent.addChild("p", "Fetched blocks: "+fr.fetchedBlocks);
- infoboxContent.addChild("p", "Failed blocks: "+fr.failedBlocks);
- infoboxContent.addChild("p", "Fatally blocks: "+fr.fatallyFailedBlocks);
- infoboxContent.addChild("p", "Finalized: "+fr.finalizedBlocks);
+ if(core.isAdvancedModeEnabled()) {
+ infoboxContent.addChild("p", "Blocks: need "+fr.requiredBlocks+" total "+fr.totalBlocks+" fetched "+fr.fetchedBlocks+" failed "+fr.failedBlocks+" fatally failed "+fr.fatallyFailedBlocks);
+ }
infoboxContent.addChild("p", "Time elapsed: "+TimeUtil.formatTime(System.currentTimeMillis() - fr.timeStarted));
long eta = fr.eta;
if(eta > 0)