mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix build with zig 0.10.0-dev.1946+6f4343b61
I wasn't planning on (publicly) keeping up with Zig master before the next release, but it's looking like 0.10 will mainly focus on the new stage2 compiler and there might not be any significant language/stdlib changes. If that's the case, might as well pull in this little change in order to increase chances of ncdu working out of the box when 0.10 is out.
This commit is contained in:
parent
0fc14173f2
commit
bb98939e24
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ const Row = struct {
|
|||
ui.addch('[');
|
||||
if (main.config.show_percent) {
|
||||
self.bg.fg(.num);
|
||||
ui.addprint("{d:>5.1}", .{ 100*
|
||||
ui.addprint("{d:>5.1}", .{ 100 *
|
||||
if (main.config.show_blocks) @intToFloat(f32, item.blocks) / @intToFloat(f32, std.math.max(1, dir_parent.entry.blocks))
|
||||
else @intToFloat(f32, item.size) / @intToFloat(f32, std.math.max(1, dir_parent.entry.size))
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue