forked from MinecraftUtilities/Backend
fix cpu metric
This commit is contained in:
parent
a47db6d843
commit
3d17798f30
@ -15,6 +15,11 @@ public class CpuUsageMetric extends DoubleMetric {
|
||||
super("cpu_usage");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCollector() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void collect() {
|
||||
this.setValue(OS_BEAN.getProcessCpuLoad() * 100);
|
||||
|
Loading…
Reference in New Issue
Block a user