From d742083f449bb6f33923b962bc7aeaf91fab5fc0 Mon Sep 17 00:00:00 2001 From: XOF Date: Mon, 15 Dec 2025 06:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20templates/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 82cc22d..6a07672 100644 --- a/templates/index.html +++ b/templates/index.html @@ -232,9 +232,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';