Added in CPU and Memory details to online graph, including for overall system

This commit is contained in:
Obique PSWG
2015-08-27 17:03:49 -05:00
parent 3b00470214
commit 3e71418bf8
4 changed files with 96 additions and 25 deletions
@@ -131,9 +131,7 @@ public class OnlineInterfaceService extends Service implements HttpServerCallbac
}
private void collectData() {
Runtime r = Runtime.getRuntime();
double memUsage = 1 - ((double) r.totalMemory() / r.maxMemory());
data.addMemoryUsageData(memUsage);
data.updateResourceUsage();
}
private InetAddress getBindAddr(Config c, String firstTry, String secondTry) {