Skip to content

Commit

Permalink
fix: display disk capacity in a correct format (#2013)
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl committed Jul 1, 2022
1 parent 8118afd commit dec3d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dec3d62

Please sign in to comment.