Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reaby committed Jan 23, 2024
1 parent cd7e874 commit c134f73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/minicontrol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
12 changes: 6 additions & 6 deletions core/plugins/debugtool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c134f73

Please sign in to comment.