diff --git a/repo/js/AbundantOre/main.js b/repo/js/AbundantOre/main.js index 61fe5855c..65093b966 100644 --- a/repo/js/AbundantOre/main.js +++ b/repo/js/AbundantOre/main.js @@ -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(); -})(); \ No newline at end of file +})();