commit a8870eef0db11b4856b60b12c975d9187e2cf341 parent 0807783388343a8ab4035e50f0a542fadfe03423 Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com> Date: Wed, 20 May 2020 17:58:39 +0200 Convert to f32 before rounding to fix arm issue Diffstat:
M | src/util.rs | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util.rs b/src/util.rs @@ -243,7 +243,7 @@ pub fn get_display_size(size: i32) -> String { } // Round to two decimals - size = (size * 100.).round() / 100.; + let size = ((size * 100.) as f32).round() / 100.; format!("{} {}", size, UNITS[unit_counter]) }