From dbc970abec41db5d1c3733b3bb916c62e6fa8d63 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sun, 9 Feb 2020 22:25:47 -0500 Subject: [PATCH] Accidentally left in some code that prevented the total rx/tx from being shown on windows... oops. --- src/data_conversion.rs | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/data_conversion.rs b/src/data_conversion.rs index f323112e..ec4373e9 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -279,26 +279,18 @@ pub fn convert_network_data_points( rx_converted_result = get_exact_byte_values(current_data.network_harvest.rx, false); total_rx_converted_result = get_exact_byte_values(current_data.network_harvest.total_rx, false); let rx_display = format!("{:.*}{}", 1, rx_converted_result.0, rx_converted_result.1); - let total_rx_display = if cfg!(not(target_os = "windows")) { - format!( - "{:.*}{}", - 1, total_rx_converted_result.0, total_rx_converted_result.1 - ) - } else { - "N/A".to_string() - }; + let total_rx_display = format!( + "{:.*}{}", + 1, total_rx_converted_result.0, total_rx_converted_result.1 + ); tx_converted_result = get_exact_byte_values(current_data.network_harvest.tx, false); total_tx_converted_result = get_exact_byte_values(current_data.network_harvest.total_tx, false); let tx_display = format!("{:.*}{}", 1, tx_converted_result.0, tx_converted_result.1); - let total_tx_display = if cfg!(not(target_os = "windows")) { - format!( - "{:.*}{}", - 1, total_tx_converted_result.0, total_tx_converted_result.1 - ) - } else { - "N/A".to_string() - }; + let total_tx_display = format!( + "{:.*}{}", + 1, total_tx_converted_result.0, total_tx_converted_result.1 + ); ConvertedNetworkData { rx,