Add getCpuUsageThreshold() method in SystemRuleManager (#770)
This commit is contained in:
parent
83ab401ab4
commit
4ec0462e31
|
|
@ -242,6 +242,10 @@ public class SystemRuleManager {
|
|||
SystemRuleManager.highestSystemLoad = highestSystemLoad;
|
||||
}
|
||||
|
||||
public static double getCpuUsageThreshold() {
|
||||
return highestCpuUsage;
|
||||
}
|
||||
|
||||
public static void loadSystemConf(SystemRule rule) {
|
||||
boolean checkStatus = false;
|
||||
// Check if it's valid.
|
||||
|
|
|
|||
Loading…
Reference in New Issue