From adf12401167d750661e450bf1e78ed2df4fda94e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 9 Nov 2019 23:38:11 -0500 Subject: [PATCH] fix int issue --- src/intervals/storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intervals/storage.ts b/src/intervals/storage.ts index 3d822ed..b15ca9e 100644 --- a/src/intervals/storage.ts +++ b/src/intervals/storage.ts @@ -10,7 +10,8 @@ export default function storage(client: Client) { let bytes = Number(res.split('/')[0].replace('\t', '')); try { await fs.access(`/var/mail/${account.username}`, fs.constants.F_OK); - bytes += Number(res.split('/')[0].replace('\t', '')); + const res2 = await client.util.exec(`du -bs /var/mail/${account.username}`); + bytes += Number(res2.split('/')[0].replace('\t', '')); } catch { bytes += 0; }