mirror of
https://github.com/danog/ytop.git
synced 2024-11-26 20:15:03 +01:00
Show baseline spanning the bottom of the net sparklines
This commit is contained in:
parent
2a6ac6225c
commit
84ca8371d7
@ -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
|
||||
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -886,7 +886,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "tui"
|
||||
version = "0.8.0"
|
||||
source = "git+https://github.com/cjbassi/tui-rs#9e6666c03ee299de16e6a77b081f4009d666b6d0"
|
||||
source = "git+https://github.com/cjbassi/tui-rs#652dde97a63e240bf68a64851498aa6db119c47e"
|
||||
dependencies = [
|
||||
"bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"cassowary 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -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);
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user