diff --git a/src/components/pages/Dashboard.tsx b/src/components/pages/Dashboard.tsx index 8b1c9af..a30c172 100644 --- a/src/components/pages/Dashboard.tsx +++ b/src/components/pages/Dashboard.tsx @@ -132,7 +132,7 @@ export default function Dashboard() { {stats.size} Average Size - {bytesToRead(stats.size / stats.count)} + {bytesToRead(stats.size_num / stats.count)} diff --git a/src/pages/api/stats.ts b/src/pages/api/stats.ts index e187c8c..a69a94d 100644 --- a/src/pages/api/stats.ts +++ b/src/pages/api/stats.ts @@ -51,6 +51,7 @@ async function handler(req: NextApiReq, res: NextApiRes) { return res.json({ size: bytesToRead(size), + size_num: size, count, count_by_user, count_users,