1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-06-30 19:24:42 +02:00

Convert to f32 before rounding to fix arm issue

Dieser Commit ist enthalten in:
Daniel García 2020-05-20 17:58:39 +02:00
Ursprung 0807783388
Commit a8870eef0d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: FC8A7D14C3CD543A

Datei anzeigen

@ -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])
}