This commit is contained in:
syuilo 2018-08-12 16:16:27 +09:00
parent ccb00e218f
commit 79f8b29bef

View file

@ -62,7 +62,7 @@ export default class ServerModule implements IModule {
const cpuPercentages = this.statsLogs.map(s => s.cpu_usage * 100);
const cpuPercentage = average(cpuPercentages);
if (cpuPercentage >= 90) {
if (cpuPercentage >= 70) {
this.scheduleReboot('cpu');
}
}