From 42223a076894f2bb1f23f01b7d9e16c22596ac13 Mon Sep 17 00:00:00 2001 From: Jamis Date: Wed, 15 Oct 2025 15:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8D=E5=BE=AE=E8=B0=83=E6=95=B4AbundantOre?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=97=A5=E5=BF=97=E7=9A=84=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20(#2148)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update log format * update --- repo/js/AbundantOre/main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 +})();