From 1e8dcabccb1b2b9c975110b8afff8f85f4af8ad5 Mon Sep 17 00:00:00 2001 From: cmliu Date: Tue, 6 Jan 2026 19:44:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96Usage=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E5=80=BC=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E5=A4=84=E7=90=86CF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E6=9C=80=E5=A4=A7=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index 7361508..4556ec0 100644 --- a/_worker.js +++ b/_worker.js @@ -207,7 +207,7 @@ export default { if (config_JSON.CF.Usage.success) { pagesSum = config_JSON.CF.Usage.pages; workersSum = config_JSON.CF.Usage.workers; - total = 1024 * 100; + total = Number.isFinite(config_JSON.CF.Usage.max) ? (config_JSON.CF.Usage.max / 1000) * 1024 : 1024 * 100; } const responseHeaders = { "content-type": "text/plain; charset=utf-8",