From dd4b19866d77c57b2d0fd578242b644b6bbcdc43 Mon Sep 17 00:00:00 2001 From: ClementTsang <34804052+ClementTsang@users.noreply.github.com> Date: Sun, 20 Nov 2022 03:22:22 -0500 Subject: [PATCH] other: update Debian extended description --- Cargo.toml | 9 ++++----- src/app/data_harvester.rs | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f881ad74..9dcd1b38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,12 +142,11 @@ assets = [ ], ["completion/_btm", "usr/share/zsh/vendor-completions/", "644"], ] -extended-description = """\ -A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows. +extended-description = """ -By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. -If one is not specified it will fall back to defaults. If a config file does not -exist at the specified or default location, a blank one will be created for the user. +By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. A config file can be specified \ +using `-C`. If a config file does not exist at the specified or default location, a default one will be created \ +for the user there. """ [package.metadata.deb.variants.arm64] diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs index c85f1b41..25913077 100644 --- a/src/app/data_harvester.rs +++ b/src/app/data_harvester.rs @@ -3,10 +3,13 @@ use std::time::Instant; use futures::join; + #[cfg(target_os = "linux")] use fxhash::FxHashMap; + #[cfg(feature = "battery")] use starship_battery::{Battery, Manager}; + #[cfg(not(target_os = "linux"))] use sysinfo::{System, SystemExt};