| ... | @@ -5,7 +5,7 @@ const assert = std.debug.assert; | ... | @@ -5,7 +5,7 @@ const assert = std.debug.assert; |
| 5 | pub const range = @import("range").range; | 5 | pub const range = @import("range").range; |
| 6 | | 6 | |
| 7 | pub fn fmtByteCountIEC(alloc: std.mem.Allocator, b: u64) !string { | 7 | pub fn fmtByteCountIEC(alloc: std.mem.Allocator, b: u64) !string { |
| 8 | return try reduceNumber(alloc, b, 1024, "B", "KMGTPEZY"); | 8 | return try reduceNumber(alloc, b, 1024, "B", "KMGTPEZYRQ"); |
| 9 | } | 9 | } |
| 10 | | 10 | |
| 11 | pub fn reduceNumber(alloc: std.mem.Allocator, input: u64, comptime unit: u64, comptime base: string, comptime prefixes: string) !string { | 11 | pub fn reduceNumber(alloc: std.mem.Allocator, input: u64, comptime unit: u64, comptime base: string, comptime prefixes: string) !string { |