mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 05:17:23 +09:00
✌️
This commit is contained in:
parent
79f8b29bef
commit
40306493ab
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user