mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
fix gather stats
This commit is contained in:
parent
9e1bde7475
commit
3dd000116e
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -17,7 +17,8 @@ app.get("/", async (req, res) => {
|
||||||
? require("./engines/s3.engine")
|
? require("./engines/s3.engine")
|
||||||
: require("./engines/local.engine");
|
: require("./engines/local.engine");
|
||||||
|
|
||||||
const { uploads, size } = await engine.gatherStatistics();
|
const { gatherStatistics } = engine;
|
||||||
|
const { uploads, size } = await gatherStatistics();
|
||||||
res.render("index", {
|
res.render("index", {
|
||||||
totalUploads: uploads,
|
totalUploads: uploads,
|
||||||
totalSize: size.toFixed(2),
|
totalSize: size.toFixed(2),
|
||||||
|
|
Loading…
Reference in a new issue