fix: display disk capacity in a correct format

This commit is contained in:
Oleg Lobanov 2022-07-01 16:29:00 +02:00
parent 8118afd0ac
commit 667d798561
No known key found for this signature in database
GPG Key ID: 65FF3DB864FE3D2A

View File

@ -150,8 +150,8 @@ export default {
try {
let usage = await api.usage(path);
usageStats = {
used: prettyBytes(usage.used),
total: prettyBytes(usage.total),
used: prettyBytes(usage.used, { binary: true }),
total: prettyBytes(usage.total, { binary: true }),
usedPercentage: Math.round((usage.used / usage.total) * 100),
};
} catch (error) {