mirror of https://github.com/mum4k/termdash.git
Removed another one
This commit is contained in:
parent
cdbcd400a2
commit
c304765e5c
|
@ -232,7 +232,7 @@ func newSparkLines(ctx context.Context) (*sparkline.SparkLine, *sparkline.SparkL
|
||||||
)
|
)
|
||||||
go periodic(ctx, 500*time.Millisecond, func() error {
|
go periodic(ctx, 500*time.Millisecond, func() error {
|
||||||
v := int(rand.Int31n(max + 1))
|
v := int(rand.Int31n(max + 1))
|
||||||
return err := spRed.Add([]int{v})
|
return spRed.Add([]int{v})
|
||||||
})
|
})
|
||||||
return spGreen, spRed
|
return spGreen, spRed
|
||||||
|
|
||||||
|
@ -300,11 +300,11 @@ func newHeartbeat(ctx context.Context) *linechart.LineChart {
|
||||||
go periodic(ctx, redrawInterval/3, func() error {
|
go periodic(ctx, redrawInterval/3, func() error {
|
||||||
step = (step + 1) % len(inputs)
|
step = (step + 1) % len(inputs)
|
||||||
return lc.Series("heartbeat", rotate(inputs, step),
|
return lc.Series("heartbeat", rotate(inputs, step),
|
||||||
linechart.SeriesCellOpts(cell.FgColor(cell.ColorNumber(87))),
|
linechart.SeriesCellOpts(cell.FgColor(cell.ColorNumber(87))),
|
||||||
linechart.SeriesXLabels(map[int]string{
|
linechart.SeriesXLabels(map[int]string{
|
||||||
0: "zero",
|
0: "zero",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
return lc
|
return lc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue