mirror of https://github.com/mum4k/termdash.git
Fixing the SparkLine demo.
This commit is contained in:
parent
f4d2edc3f9
commit
4da5097d66
|
@ -41,7 +41,7 @@ func playSparkLine(ctx context.Context, sl *sparkline.SparkLine, delay time.Dura
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
v := int(rand.Int31n(max + 1))
|
v := int(rand.Int31n(max + 1))
|
||||||
if err := sl.Add(v); err != nil {
|
if err := sl.Add([]int{v}); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue