mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 14:27:18 +09: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…
x
Reference in New Issue
Block a user