diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-07-23 16:51:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 19:51:45 -0400 |
commit | bacaca5548c2b23d261ef961ee6584b609529567 (patch) | |
tree | 53332776f952da81bfb2cf301a186ece39468436 /src/data_conversion.rs | |
parent | a7464d25af9c7d6b4195c091ea1ced9b1a938f5f (diff) |
change: add '/s' to network usage legend (#557)
Adds "/s" to the the network usage graph legend.
Diffstat (limited to 'src/data_conversion.rs')
-rw-r--r-- | src/data_conversion.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data_conversion.rs b/src/data_conversion.rs index fce34145..58652370 100644 --- a/src/data_conversion.rs +++ b/src/data_conversion.rs @@ -435,8 +435,8 @@ pub fn convert_network_data_points( ); let unit = match network_unit_type { - DataUnit::Byte => "B", - DataUnit::Bit => "b", + DataUnit::Byte => "B/s", + DataUnit::Bit => "b/s", }; let (rx_data, tx_data, total_rx_data, total_tx_data) = match network_unit_type { @@ -501,7 +501,7 @@ pub fn convert_network_data_points( } } else { let rx_display = format!( - "RX: {:<8} All: {}", + "RX: {:<10} All: {}", if network_use_binary_prefix { format!("{:.1}{:3}", rx_converted_result.0, rx_converted_result.1) } else { @@ -520,7 +520,7 @@ pub fn convert_network_data_points( } ); let tx_display = format!( - "TX: {:<8} All: {}", + "TX: {:<10} All: {}", if network_use_binary_prefix { format!("{:.1}{:3}", tx_converted_result.0, tx_converted_result.1) } else { |