diff --git a/pages/system/src/about.rs b/pages/system/src/about.rs index e8d11a2..8d8762c 100644 --- a/pages/system/src/about.rs +++ b/pages/system/src/about.rs @@ -209,7 +209,8 @@ pub fn read_to_string<'a, P: AsRef>( } fn format_size(size: u64) -> String { - byte_unit::Byte::from_u64(size) - .get_appropriate_unit(byte_unit::UnitType::Decimal) - .to_string() + format!( + "{:.2}", + byte_unit::Byte::from_u64(size).get_appropriate_unit(byte_unit::UnitType::Binary) + ) }