Skip to content

Commit

Permalink
chore: format seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Subilan committed Aug 7, 2024
1 parent 92e866c commit 64ba124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public MutableComponent buildTaskInfo(@NotNull Task targetTask) {
(isRunning ? "&a✔ 运行中" : "&c✘ 已停止") + "\n" +
"&f执行频率:&e" + interval + "s\n" +
"&f上次执行时间:&e" + lastExecutionString + "\n" +
"&f连续运行时间:&e" + targetTask.getUptime() + "s\n"
"&f连续运行时间:&e" + TextUtil.formatSeconds(targetTask.getUptime()) + "s\n"
);
}
}
4 changes: 2 additions & 2 deletions src/main/java/cc/seati/SeatiCore/Tasks/EmptyServerTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public TaskType getType() {
@Override
public MutableComponent getExtraInfo() {
return TextUtil.literal(
"&f空置时间:&e" + this.emptyTime + "s\n" +
"距离释放:&c" + (ConfigUtil.getMaxEmptyTime() - this.emptyTime) + "s\n"
"&f空置时间:&e" + TextUtil.formatSeconds(this.emptyTime) + "s\n" +
"距离释放:&c" + TextUtil.formatSeconds(ConfigUtil.getMaxEmptyTime() - this.emptyTime) + "s\n"
);
}
}

0 comments on commit 64ba124

Please sign in to comment.