Fixed dashboard example crash because of index out of range
This commit is contained in:
parent
0cb4aedd6f
commit
a2a6c19ac0
@ -126,8 +126,8 @@ func main() {
|
||||
list.Items = strs[t%9:]
|
||||
sp.Lines[0].Data = spdata[:30+t%50]
|
||||
sp.Lines[1].Data = spdata[:35+t%50]
|
||||
lc.Data = sinps[t/2:]
|
||||
lc1.Data = sinps[2*t:]
|
||||
lc.Data = sinps[t/2%220:]
|
||||
lc1.Data = sinps[2*t%220:]
|
||||
bc.Data = bcdata[t/2%10:]
|
||||
ui.Render(p, list, g, sp, lc, bc, lc1, p1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user