vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit c5d7e3f2bc328e331a2c3fcec0608690ed4dd2b4
parent c95a2881b501109b7ae1b074aedaff495a32e3d3
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 23 May 2020 13:10:06 +0200

Merge pull request #1003 from frdescam/fix_arm_displaysize

Use format! for rounding to fix arm issue
Diffstat:
Msrc/util.rs | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/util.rs b/src/util.rs @@ -242,9 +242,7 @@ pub fn get_display_size(size: i32) -> String { } } - // Round to two decimals - let size = ((size * 100.) as f32).round() / 100.; - format!("{} {}", size, UNITS[unit_counter]) + format!("{:.2} {}", size, UNITS[unit_counter]) } pub fn get_uuid() -> String {