From 5366d764a8b272852696ea456deceb9bb96e887b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl?= <15849319+abcdan@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:48:18 +0200 Subject: [PATCH] size fix --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a10ed95..5a09124 100644 --- a/index.js +++ b/index.js @@ -44,9 +44,12 @@ app.get("/", async (req, res) => { } const { totalUploads, totalSize } = await storageEngine.gatherStatistics(); + + const kbToMB = totalSize / 1024 / 1024; + res.render("index", { totalUploads: totalUploads, - totalSize: totalSize, + totalSize: kbToMB, hosterEmail: hosterEmail, }); });