mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-16 06:52:07 +01:00
Merge pull request #1003 from frdescam/fix_arm_displaysize
Use format! for rounding to fix arm issue
This commit is contained in:
commit
c5d7e3f2bc
1 changed files with 1 additions and 3 deletions
|
@ -242,9 +242,7 @@ pub fn get_display_size(size: i32) -> String {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Round to two decimals
|
format!("{:.2} {}", size, UNITS[unit_counter])
|
||||||
let size = ((size * 100.) as f32).round() / 100.;
|
|
||||||
format!("{} {}", size, UNITS[unit_counter])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_uuid() -> String {
|
pub fn get_uuid() -> String {
|
||||||
|
|
Loading…
Reference in a new issue