This commit is contained in:
syuilo 2018-08-12 20:44:55 +09:00
parent 79f8b29bef
commit 40306493ab

View file

@ -48,7 +48,7 @@ export default class ServerModule implements IModule {
setInterval(() => {
this.check();
}, 1000);
}, 3000);
}
private check = () => {
@ -65,6 +65,8 @@ export default class ServerModule implements IModule {
if (cpuPercentage >= 70) {
this.scheduleReboot('cpu');
}
console.log(`CPU: ${cpuPercentage}% | MEM: ${memPercentage}%`);
}
private onConnectionMessage = (msg: any) => {