feat(tui): DOWN-first sort, health pulse, filter, and sparkline fixes #11
@@ -2,7 +2,7 @@ package monitor
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
const maxHistoryLen = 30
|
const maxHistoryLen = 60
|
||||||
|
|
||||||
type SiteHistory struct {
|
type SiteHistory struct {
|
||||||
Latencies []time.Duration
|
Latencies []time.Duration
|
||||||
|
|||||||
@@ -211,8 +211,8 @@ func (m Model) dynamicWidths() (nameW, sparkW int) {
|
|||||||
if sparkW < 10 {
|
if sparkW < 10 {
|
||||||
sparkW = 10
|
sparkW = 10
|
||||||
}
|
}
|
||||||
if sparkW > 40 {
|
if sparkW > 60 {
|
||||||
sparkW = 40
|
sparkW = 60
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user