Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit e329961

Browse files
committed
upd: 预先填充在线人数报表初始数据
1 parent 69c627f commit e329961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/entity/commands/task/players.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export default class RefreshPlayer implements ILifeCycleTask {
6464
} catch (error) { }
6565
}, 3000);
6666

67+
while (this.playersChart.length < 60) {
68+
this.playersChart.push({ value: "0" });
69+
}
70+
6771
this.playersChartTask = setInterval(async () => {
6872
try {
6973
const result = await instance.execPreset("getPlayer");

0 commit comments

Comments
 (0)