Skip to content

Commit

Permalink
Keep fraction digit
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiNtD committed Nov 10, 2023
1 parent f24221f commit 9b86a20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fileinfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const file =
function formatSize(size: number): string {
return formatBytes(size, {
binary: true,
minimumFractionDigits: 1,
maximumFractionDigits: 1,
})
.replace(" ", "")
.replace("i", "");
Expand Down

0 comments on commit 9b86a20

Please sign in to comment.