Browse Source
Convert to f32 before rounding to fix arm issue
pull/1003/head
Daniel García
5 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
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]) |
|
|
|
} |
|
|
|
|
|
|
|