diff --git a/ATxService/AutoTx.cs b/ATxService/AutoTx.cs index 0b71c5b678651380eec4a25d2f5497954a7588b6..4af8b97945b6e659e70fb2abefc5a30907bf9c7a 100644 --- a/ATxService/AutoTx.cs +++ b/ATxService/AutoTx.cs @@ -532,7 +532,7 @@ namespace ATxService // check all system parameters for valid ranges and remember the reason in a string // if one of them is failing (to report in the log why we're suspended) - if (SystemChecks.GetCpuUsage() >= _config.MaxCpuUsage) + if (_cpu.Load() >= _config.MaxCpuUsage) limitReason = "CPU usage"; else if (SystemChecks.GetFreeMemory() < _config.MinAvailableMemory) limitReason = "RAM usage";