mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-05 06:03:49 +09:00
✌️
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user