mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-22 13:16:39 +00:00
Convert to f32 before rounding to fix arm issue
This commit is contained in:
parent
0807783388
commit
a8870eef0d
@ -243,7 +243,7 @@ pub fn get_display_size(size: i32) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Round to two decimals
|
// Round to two decimals
|
||||||
size = (size * 100.).round() / 100.;
|
let size = ((size * 100.) as f32).round() / 100.;
|
||||||
format!("{} {}", size, UNITS[unit_counter])
|
format!("{} {}", size, UNITS[unit_counter])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user