This commit is contained in:
Daniël 2024-06-09 15:43:44 +02:00
parent f13ba3475b
commit 7a0e8c434a

View file

@ -43,10 +43,10 @@ app.get("/", async (req, res) => {
throw new Error("Invalid STORAGE_MODE"); throw new Error("Invalid STORAGE_MODE");
} }
const { uploads, size } = await storageEngine.gatherStatistics(); const { totalUploads, totalSize } = await storageEngine.gatherStatistics();
res.render("index", { res.render("index", {
totalUploads: uploads, totalUploads: totalUploads,
totalSize: size.toFixed(2), totalSize: totalSize,
hosterEmail: hosterEmail, hosterEmail: hosterEmail,
}); });
}); });