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