diff options
-rw-r--r-- | src/data_conversion.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data_conversion.rs b/src/data_conversion.rs index 9c211292..2e1235b0 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -221,7 +221,7 @@ pub fn update_mem_labels(current_data: &data_farmer::DataCollection) -> (String, ) + &format!( " {:.1}GB/{:.1}GB", current_data.memory_harvest.mem_used_in_mb as f64 / 1024.0, - current_data.memory_harvest.mem_total_in_mb as f64 / 1024.0 + (current_data.memory_harvest.mem_total_in_mb as f64 / 1024.0).round() ) }; @@ -237,7 +237,7 @@ pub fn update_mem_labels(current_data: &data_farmer::DataCollection) -> (String, ) + &format!( " {:.1}GB/{:.1}GB", current_data.swap_harvest.mem_used_in_mb as f64 / 1024.0, - current_data.swap_harvest.mem_total_in_mb as f64 / 1024.0 + (current_data.swap_harvest.mem_total_in_mb as f64 / 1024.0).round() ) }; |