Skip to content

Commit

Permalink
Show baseline spanning the bottom of the net sparklines
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jan 14, 2020
1 parent 2a6ac62 commit 84ca837
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Group processes by default
- Add sorting arrow to process header
- Show baseline spanning the bottom of the net sparklines

## 0.1.0 - 2020-01-13

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/widgets/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl Widget for NetWidget<'_, '_> {
.as_slice(),
)
.direction(RenderDirection::RTL)
.show_baseline(true)
.max(*self.bytes_recv.iter().max().unwrap())
.style(self.colorscheme.net_bars)
.draw(top_sparkline, buf);
Expand Down Expand Up @@ -168,6 +169,7 @@ impl Widget for NetWidget<'_, '_> {
.as_slice(),
)
.direction(RenderDirection::RTL)
.show_baseline(true)
.max(*self.bytes_sent.iter().max().unwrap())
.style(self.colorscheme.net_bars)
.draw(bottom_sparkline, buf);
Expand Down

0 comments on commit 84ca837

Please sign in to comment.