diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-09 22:25:47 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-09 22:25:47 -0500 |
commit | dbc970abec41db5d1c3733b3bb916c62e6fa8d63 (patch) | |
tree | f41bba09c4b6a7b3d2fa7a7cd9e799e9caa8e4c3 /src/data_conversion.rs | |
parent | 8098e45dcfd9f0b18cf85b373777ce47b8b15bc9 (diff) |
Accidentally left in some code that prevented the total rx/tx from being shown on windows... oops.
Diffstat (limited to 'src/data_conversion.rs')
-rw-r--r-- | src/data_conversion.rs | 24 |
1 files 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, |