mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
size fix
This commit is contained in:
parent
7a0e8c434a
commit
5366d764a8
1 changed files with 4 additions and 1 deletions
5
index.js
5
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,
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue