summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-01-01 04:35:08 -0500
committerGitHub <noreply@github.com>2023-01-01 04:35:08 -0500
commitd7e9fd6be012d8a669c1f6ce48d8b48e94322b03 (patch)
tree4b3225a744e0865ad7016f9057b76f18ee83ec77
parent0adefababf1337576a46dd13ced5903db39a71dd (diff)
other: run rustfmt (#949)
-rw-r--r--.github/workflows/build_releases.yml1
-rw-r--r--src/data_conversion.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml
index 08cd03d6..b00d57d3 100644
--- a/.github/workflows/build_releases.yml
+++ b/.github/workflows/build_releases.yml
@@ -26,6 +26,7 @@ env:
COMPLETION_DIR: "target/tmp/bottom/completion/"
MANPAGE_DIR: "target/tmp/bottom/manpage/"
+# TODO: Maybe add retry job in case of timeouts?
jobs:
build-binaries:
name: "Build binaries"
diff --git a/src/data_conversion.rs b/src/data_conversion.rs
index 2ce66e98..3e9f650f 100644
--- a/src/data_conversion.rs
+++ b/src/data_conversion.rs
@@ -63,7 +63,7 @@ pub struct ConvertedData {
pub mem_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>,
#[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)) =
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),
)
} else {