forked from I2P_Developers/i2p.i2p
lots of bitchin' oOo patches (woot, thanks oOo!), plus some cleanup
* apply oOo's patch for beautifying the new console w/ links to a shitlisted peer's netDb entry * apply oOo's patch to clean up the peer shitlist count more aggressively * apply oOo's patch to allow removing lines via /configadvanced.jsp * apply oOo's patch to clean up the memory usage display * apply oOo's patch to include log messages on /logs.jsp most recent first, rather than last * get rid of the netDb key shitlist (its a bad idea, better solution coming soon)
This commit is contained in:
@ -71,9 +71,10 @@ public class SummaryHelper {
|
||||
*
|
||||
*/
|
||||
public String getMemory() {
|
||||
DecimalFormat integerFormatter = new DecimalFormat("###,###,##0");
|
||||
long used = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory())/1024;
|
||||
long usedPc = 100 - ((Runtime.getRuntime().freeMemory() * 100) / Runtime.getRuntime().totalMemory());
|
||||
return used + "KB (" + usedPc + "%)";
|
||||
return integerFormatter.format(used) + "KB (" + usedPc + "%)";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user