summaryrefslogtreecommitdiffstats
path: root/src/data_conversion.rs
diff options
context:
space:
mode:
authorClementTsang <clementjhtsang@gmail.com>2019-12-25 23:02:21 -0500
committerClementTsang <clementjhtsang@gmail.com>2019-12-25 23:02:21 -0500
commitbaf588be8aa27523b4f29ac4cd38f43c6c944af0 (patch)
treeb60bd361ee30aa00586946767c6a662c5357ac71 /src/data_conversion.rs
parent395a3083c6a8ff68032d7e87d3b779d52cf19ffc (diff)
Redid some of the networking portion, changed cargo a bit, some refactoring
Diffstat (limited to 'src/data_conversion.rs')
-rw-r--r--src/data_conversion.rs4
1 files changed, 2 insertions, 2 deletions
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<(f64, f64)>> = 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 {