Change file size units to IEC 80000-13:2025 (binary multiples) (#2062)
* Change file size units from SI to IEC 80000-13:2025 Increase left-padded (%S) file size string length to 5 characters Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com> * Add note about used IEC units for file size in docs --------- Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
This commit is contained in:
1 parent
d60acef469
commit
23b30ae1ee
10 files changed
+90
-56
No files matched your search
+1
-1
@@ -15,5 +15,5 @@ func diskFree(wd string) string {
|
||||
}
|
||||
|
||||
// Available blocks * size per block = available space in bytes
|
||||
return "df: " + humanize(int64(uint64(stat.F_bavail)*uint64(stat.F_bsize)))
|
||||
return "df: " + humanize(uint64(stat.F_bavail)*uint64(stat.F_bsize))
|
||||
}
|
||||
Reference in new issue
Block a user