From baf588be8aa27523b4f29ac4cd38f43c6c944af0 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Wed, 25 Dec 2019 23:02:21 -0500 Subject: Redid some of the networking portion, changed cargo a bit, some refactoring --- src/data_conversion.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data_conversion.rs') diff --git a/src/data_conversion.rs b/src/data_conversion.rs index 9c583fcd..244c2356 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -123,7 +123,7 @@ pub fn update_cpu_data_points(show_avg_cpu: bool, app_data: &data_collection::Da let mut cpu_collection: Vec> = Vec::new(); if !app_data.list_of_cpu_packages.is_empty() { - // I'm sorry for the if statement but I couldn't be bothered here... + // I'm sorry for the following if statement but I couldn't be bothered here... for cpu_num in (if show_avg_cpu { 0 } else { 1 })..app_data.list_of_cpu_packages.last().unwrap().cpu_vec.len() { let mut this_cpu_data: Vec<(f64, f64)> = Vec::new(); @@ -313,7 +313,7 @@ pub fn convert_network_data_points(network_data: &[data_collection::network::Net format!("TX: {:5.*}GiB/s", 1, num_bytes as f64 / 1024.0 / 1024.0 / 1024.0) } } else { - "0B.0/s".to_string() + "0.0B/s".to_string() }; ConvertedNetworkData { -- cgit v1.2.3