add i to init, a little clearer to read

This commit is contained in:
2022-12-14 23:58:44 +00:00
parent 4b69952fd5
commit 68e9654502
2 changed files with 4 additions and 4 deletions

2
bus.go
View File

@@ -277,7 +277,7 @@ func newBusLevels(i int, k *kind) *levels {
func (l *levels) All() []float64 {
levels := make([]float64, l.offset)
for i := range levels {
levels[i] = convertLevel(_levelCache.busLevels[i+l.init])
levels[i] = convertLevel(_levelCache.busLevels[l.init+i])
}
return levels
}