formatSize tweak

This commit is contained in:
zzz
2010-11-30 15:15:39 +00:00
parent ad54822383
commit c97e72d050
3 changed files with 13 additions and 2 deletions

View File

@ -1294,7 +1294,7 @@ public class I2PSnarkServlet extends Default {
// rounding makes us look faster :)
private static String formatSize(long bytes) {
if (bytes < 5*1024)
if (bytes < 5000)
return bytes + "&nbsp;B";
else if (bytes < 5*1024*1024)
return ((bytes + 512)/1024) + "&nbsp;KB";

View File

@ -1,3 +1,14 @@
2010-11-30 zzz
* I2CP: Try to hide Pipe closed messages (several tickets)
* i2psnark: Move PeerCheckerTask from Timer to SimpleTimer2
to save some threads
* Logging:
- Limit buffer size; block and wakeup writer when full
- Limit errors written to system log
- Add method to force a log below the current level
* Streaming: Change some logged errors to warnings
(tickets 76, 341 and others)
20-11-29 dr|z3d
* Updated console theme "light".

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 16;
public final static long BUILD = 17;
/** for example "-test" */
public final static String EXTRA = "";