forked from mamu/spacepanel_aggregator
fix led order randomization, again
This commit is contained in:
parent
d75584b4cf
commit
48f99c2f63
|
@ -35,8 +35,7 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
|
|||
ledList: make(map[int][]*Space),
|
||||
}
|
||||
|
||||
i := 0
|
||||
for _, spaceUrls := range spaceList {
|
||||
for i, spaceUrls := range spaceList {
|
||||
for _, url := range spaceUrls {
|
||||
space := &Space{
|
||||
URL: url,
|
||||
|
@ -45,7 +44,6 @@ func NewStateAggregator(spaceList map[int][]string) *StateAggregator {
|
|||
go StartPollWorker(space)
|
||||
s.ledList[i] = append(s.ledList[i], space)
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
return s
|
||||
|
|
Loading…
Reference in New Issue