Browse Source

Merge pull request #1003 from frdescam/fix_arm_displaysize

Use format! for rounding to fix arm issue
pull/1004/head
Daniel García 5 years ago
committed by GitHub
parent
commit
c5d7e3f2bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/util.rs

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

Loading…
Cancel
Save