fix: display disk capacity in a correct format (#2013)

pull/2021/head
Oleg Lobanov 2022-07-01 16:31:49 +02:00 committed by GitHub
parent 8118afd0ac
commit dec3d629d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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) {