diff --git a/core/minicontrol.ts b/core/minicontrol.ts index 3711fd8..a0b1343 100644 --- a/core/minicontrol.ts +++ b/core/minicontrol.ts @@ -24,7 +24,7 @@ class MiniControl { /** * The version of MiniControl. */ - readonly version: string = "0.2.0"; + readonly version: string = "0.3.0"; /** * The start time of MiniControl. */ diff --git a/core/plugins/debugtool/index.ts b/core/plugins/debugtool/index.ts index 855c398..7e9f88f 100644 --- a/core/plugins/debugtool/index.ts +++ b/core/plugins/debugtool/index.ts @@ -14,12 +14,12 @@ export default class DebugTool extends Plugin { this.widget.pos = { x: 159, y: -60 }; tmc.addCommand("//heap", this.cmdHeap.bind(this), "Log heap memory usage"); tmc.addCommand("//addfake", this.cmdFakeUsers.bind(this), "Connect Fake users"); - tmc.addCommand("//removefake", this.cmdRemoveFakeUsers.bind(this), "Connect Fake users"); - this.displayMemInfo(); - this.intervalId = setInterval(() => { - this.displayMemInfo(); - }, 5000); + tmc.addCommand("//removefake", this.cmdRemoveFakeUsers.bind(this), "Connect Fake users"); } + this.displayMemInfo(); + this.intervalId = setInterval(() => { + this.displayMemInfo(); + }, 60000); } async onUnload() { @@ -50,7 +50,7 @@ export default class DebugTool extends Plugin { const mem = memInfo(); let start = Date.now() - Number.parseInt(tmc.startTime); - tmc.debug("¤info¤Memory usage: " + mem + " ¤info¤uptime: $fff" + tm.Time.fromMilliseconds(start).toTmString().replace(/[.]\d{3}/, "")); + tmc.cli("¤info¤Memory usage: " + mem + " ¤info¤uptime: $fff" + tm.Time.fromMilliseconds(start).toTmString().replace(/[.]\d{3}/, "")); if (this.widget) { this.widget.setData({ mem: mem }); await this.widget.display();