Commit b8e2f0d
committed
fix(disk-space): promote 1024 MiB to 1.0 GiB in disk warnings
formatDiskSpaceBytes tested the unrounded mib < 1024 but then rounded,
so values in [1023.5, 1024) MiB printed the impossible "1024 MiB".
Round before choosing the unit so they render as "1.0 GiB".1 parent ec3aa5d commit b8e2f0d
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments