mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
✌️
This commit is contained in:
parent
79f8b29bef
commit
40306493ab
|
@ -48,7 +48,7 @@ export default class ServerModule implements IModule {
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
this.check();
|
this.check();
|
||||||
}, 1000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private check = () => {
|
private check = () => {
|
||||||
|
@ -65,6 +65,8 @@ export default class ServerModule implements IModule {
|
||||||
if (cpuPercentage >= 70) {
|
if (cpuPercentage >= 70) {
|
||||||
this.scheduleReboot('cpu');
|
this.scheduleReboot('cpu');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`CPU: ${cpuPercentage}% | MEM: ${memPercentage}%`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private onConnectionMessage = (msg: any) => {
|
private onConnectionMessage = (msg: any) => {
|
||||||
|
|
Loading…
Reference in a new issue