From a8d3593518a994f91d56e8412cf8553e2ff674f6 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Tue, 3 Mar 2020 00:59:03 -0500 Subject: [PATCH] [skip travis] Update README. --- README.md | 8 ++++---- src/canvas.rs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 53f30465..043846be 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ sudo dpkg -i bottom_0.2.2_amd64.deb ### Windows -You can get release versions via [Chocolatey](https://chocolatey.org/packages/bottom/): +You can get release versions via [Chocolatey](https://chocolatey.org/packages/bottom/) (note it may take a while to be available due to moderation/review): ```bash choco install bottom --version=0.2.1 @@ -86,10 +86,10 @@ choco install bottom --version=0.2.1 You can get release versions using Homebrew: ```bash -$ brew tap clementtsang/bottom -$ brew install bottom +brew tap clementtsang/bottom +brew install bottom # Or -$ brew install clementtsang/bottom/bottom +brew install clementtsang/bottom/bottom ``` ## Usage diff --git a/src/canvas.rs b/src/canvas.rs index dbe903f4..b7b2a29e 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -1656,6 +1656,7 @@ impl Painter { let bar_length = remaining_width / REQUIRED_COLUMNS; + // CPU (and RAM) percent bars are, uh, "heavily" inspired from htop. let cpu_bars = (0..num_cpus) .map(|cpu_index| { let use_percentage = if let Some(cpu_usage) = cpu_data[cpu_index].cpu_data.last() {