From 86afec3e7bc10f7ff81d192da7ae24abbb158fbd Mon Sep 17 00:00:00 2001 From: XOF Date: Mon, 15 Dec 2025 06:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20templates/index-2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index-2.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/index-2.html b/templates/index-2.html index 4336ff4..c2a6c66 100644 --- a/templates/index-2.html +++ b/templates/index-2.html @@ -305,9 +305,10 @@ fetch('/stats') .then(r => r.json()) .then(data => { - const sizeMB = (data.size / 1024 / 1024).toFixed(2); + const sizeMB = (data.size_bytes / 1024 / 1024).toFixed(2); + const maxSizeMB = (data.max_size_bytes / 1024 / 1024).toFixed(2); document.getElementById('stats').textContent = - `Cache: ${data.entries} entries, ${sizeMB} MB`; + `Cache: ${data.entries} entries, ${sizeMB} MB / ${maxSizeMB} MB`; }) .catch(() => { document.getElementById('stats').textContent = 'Stats unavailable';