|
|
|
@ -150,10 +150,13 @@ public class Status {
|
|
|
|
|
prop.put("otherPeers", 0);//not online
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// pop-up trigger management
|
|
|
|
|
Runtime rt = Runtime.getRuntime();
|
|
|
|
|
|
|
|
|
|
// pop-up trigger management and gc
|
|
|
|
|
if (post != null) {
|
|
|
|
|
if (post.containsKey("dispop")) env.setConfig("browserPopUpTrigger", "false");
|
|
|
|
|
if (post.containsKey("enpop")) env.setConfig("browserPopUpTrigger", "true");
|
|
|
|
|
if (post.containsKey("gc")) rt.gc();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (env.getConfig("browserPopUpTrigger", "false").equals("false")) {
|
|
|
|
@ -168,11 +171,11 @@ public class Status {
|
|
|
|
|
prop.put("omode", 2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// memory usage
|
|
|
|
|
Runtime rt = Runtime.getRuntime();
|
|
|
|
|
// memory usage and system attributes
|
|
|
|
|
prop.put("freeMemory", bytesToString(rt.freeMemory()));
|
|
|
|
|
prop.put("totalMemory", bytesToString(rt.totalMemory()));
|
|
|
|
|
prop.put("maxMemory", bytesToString(rt.maxMemory()));
|
|
|
|
|
prop.put("processors", rt.availableProcessors());
|
|
|
|
|
|
|
|
|
|
// proxy traffic
|
|
|
|
|
prop.put("trafficIn",bytesToString(httpdByteCountInputStream.getGlobalCount()));
|
|
|
|
|