稍微调整AbundantOre脚本日志的输出格式 (#2148)

* Update log format

* update
This commit is contained in:
Jamis
2025-10-15 15:31:23 +08:00
committed by GitHub
parent 853dd12b09
commit 42223a0768

View File

@@ -530,10 +530,13 @@ async function main() {
if (Date.now() - last_log_progress_time > 30000) {
last_log_progress_time = Date.now();
if (target_yield !== null) {
log.info("当前产出{estimate}{a}/{b}个", (estimated_yield === accurate_yield ? "" : "(预计)"), Math.round(estimated_yield), target_yield);
const estimated_prompt = estimated_yield === accurate_yield ? "" : "(预计)";
log.info(`当前产出${estimated_prompt}${Math.round(estimated_yield)}/${target_yield}`);
}
if (run_until_unix_time !== null) {
log.info("当前运行时间:{a}/{b}分钟", ((Date.now() - start_time) / 1000 / 60).toFixed(2), Math.round((run_until_unix_time - start_time) / 60 / 1000));
const running_minutes = ((Date.now() - start_time) / 1000 / 60).toFixed(2);
const total_minutes = Math.round((run_until_unix_time - start_time) / 60 / 1000);
log.info(`当前运行时间:${running_minutes}/${total_minutes}分钟`);
}
}
}
@@ -568,4 +571,4 @@ async function main() {
(async function() {
await main();
})();
})();