mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-09-17 14:37:31 +03:00
change: add '/s' to network usage legend (#557)
Adds "/s" to the the network usage graph legend.
This commit is contained in:
parent
a7464d25af
commit
bacaca5548
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [0.6.4]/[0.7.0] - Unreleased
|
||||
|
||||
## Changes
|
||||
|
||||
- [#557](https://github.com/ClementTsang/bottom/pull/557): Add '/s' to network usage legend.
|
||||
|
||||
## Internal Changes
|
||||
|
||||
- [#551](https://github.com/ClementTsang/bottom/pull/551): Disable AUR package generation in release pipeline since it's now in community.
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 33 KiB |
Binary file not shown.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 118 KiB |
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user