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, }); });