mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-28 13:12:59 -04:00
Added in CPU and Memory details to online graph, including for overall system
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user