Codebase list golang-github-vbauerster-mpb / eff90a8
better slice name Vladimir Bauer 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
243243 }
244244
245245 func (s *pState) renderByPriority(tw int, pSyncer, aSyncer *widthSyncer) []<-chan *bFrame {
246 pp := make([]<-chan *bFrame, 0, s.bHeap.Len())
246 bff := make([]<-chan *bFrame, 0, s.bHeap.Len())
247247 for s.bHeap.Len() > 0 {
248248 b := heap.Pop(s.bHeap).(*Bar)
249249 defer heap.Push(s.bHeap, b)
250 pp = append(pp, b.render(s.debugOut, tw, pSyncer, aSyncer))
251 }
252 return pp
250 bff = append(bff, b.render(s.debugOut, tw, pSyncer, aSyncer))
251 }
252 return bff
253253 }
254254
255255 func calcMax(slice []int) int {