mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 21:55:11 +02:00
other: run rustfmt (#949)
This commit is contained in:
parent
0adefababf
commit
d7e9fd6be0
1
.github/workflows/build_releases.yml
vendored
1
.github/workflows/build_releases.yml
vendored
@ -26,6 +26,7 @@ env:
|
|||||||
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
COMPLETION_DIR: "target/tmp/bottom/completion/"
|
||||||
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
MANPAGE_DIR: "target/tmp/bottom/manpage/"
|
||||||
|
|
||||||
|
# TODO: Maybe add retry job in case of timeouts?
|
||||||
jobs:
|
jobs:
|
||||||
build-binaries:
|
build-binaries:
|
||||||
name: "Build binaries"
|
name: "Build binaries"
|
||||||
|
@ -63,7 +63,7 @@ pub struct ConvertedData {
|
|||||||
pub mem_labels: Option<(String, String)>,
|
pub mem_labels: Option<(String, String)>,
|
||||||
pub swap_labels: Option<(String, String)>,
|
pub swap_labels: Option<(String, String)>,
|
||||||
|
|
||||||
pub mem_data: Vec<Point>, // TODO: Switch this and all data points over to a better data structure...
|
pub mem_data: Vec<Point>, /* TODO: Switch this and all data points over to a better data structure... */
|
||||||
pub swap_data: Vec<Point>,
|
pub swap_data: Vec<Point>,
|
||||||
|
|
||||||
#[cfg(feature = "zfs")]
|
#[cfg(feature = "zfs")]
|
||||||
@ -374,7 +374,7 @@ pub fn convert_network_data_points(
|
|||||||
let (rx_converted_result, total_rx_converted_result): ((f64, String), (f64, &'static str)) =
|
let (rx_converted_result, total_rx_converted_result): ((f64, String), (f64, &'static str)) =
|
||||||
if network_use_binary_prefix {
|
if network_use_binary_prefix {
|
||||||
(
|
(
|
||||||
get_binary_prefix(rx_data, unit), // If this isn't obvious why there's two functions, one you can configure the unit, the other is always bytes
|
get_binary_prefix(rx_data, unit), /* If this isn't obvious why there's two functions, one you can configure the unit, the other is always bytes */
|
||||||
get_binary_bytes(total_rx_data),
|
get_binary_bytes(total_rx_data),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user