mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-26 23:24:20 +02:00
[skip travis] Update README.
This commit is contained in:
parent
0c65d5ff56
commit
a8d3593518
@ -75,7 +75,7 @@ sudo dpkg -i bottom_0.2.2_amd64.deb
|
|||||||
|
|
||||||
### Windows
|
### 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
|
```bash
|
||||||
choco install bottom --version=0.2.1
|
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:
|
You can get release versions using Homebrew:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ brew tap clementtsang/bottom
|
brew tap clementtsang/bottom
|
||||||
$ brew install bottom
|
brew install bottom
|
||||||
# Or
|
# Or
|
||||||
$ brew install clementtsang/bottom/bottom
|
brew install clementtsang/bottom/bottom
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -1656,6 +1656,7 @@ impl Painter {
|
|||||||
|
|
||||||
let bar_length = remaining_width / REQUIRED_COLUMNS;
|
let bar_length = remaining_width / REQUIRED_COLUMNS;
|
||||||
|
|
||||||
|
// CPU (and RAM) percent bars are, uh, "heavily" inspired from htop.
|
||||||
let cpu_bars = (0..num_cpus)
|
let cpu_bars = (0..num_cpus)
|
||||||
.map(|cpu_index| {
|
.map(|cpu_index| {
|
||||||
let use_percentage = if let Some(cpu_usage) = cpu_data[cpu_index].cpu_data.last() {
|
let use_percentage = if let Some(cpu_usage) = cpu_data[cpu_index].cpu_data.last() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user