1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-12-01 06:31:11 +01:00

Merge pull request #1003 from frdescam/fix_arm_displaysize

Use format! for rounding to fix arm issue
Dieser Commit ist enthalten in:
Daniel García 2020-05-23 13:10:06 +02:00 committet von GitHub
Commit c5d7e3f2bc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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 {