mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 08:48:12 +03:00
use format! for rounding to fix arm issue
This commit is contained in:
1 parent
a8870eef0d
commit
4c3727b4a3
1 file changed
+1
-3
+1
-3
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user