1
0
Fork 0

fix int issue

refactor/models
Matthew 2019-11-09 23:38:11 -05:00
parent a62d10caa5
commit adf1240116
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ export default function storage(client: Client) {
let bytes = Number(res.split('/')[0].replace('\t', '')); let bytes = Number(res.split('/')[0].replace('\t', ''));
try { try {
await fs.access(`/var/mail/${account.username}`, fs.constants.F_OK); 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 { } catch {
bytes += 0; bytes += 0;
} }