method rename
Vladimir Bauer
6 years ago
| 219 | 219 | if complete && !s.toComplete { |
| 220 | 220 | s.current = s.total |
| 221 | 221 | s.toComplete = true |
| 222 | go b.refreshNowTillShutdown() | |
| 222 | go b.refreshTillShutdown() | |
| 223 | 223 | } |
| 224 | 224 | }: |
| 225 | 225 | case <-b.done: |
| 237 | 237 | if s.total > 0 && s.current >= s.total { |
| 238 | 238 | s.current = s.total |
| 239 | 239 | s.toComplete = true |
| 240 | go b.refreshNowTillShutdown() | |
| 240 | go b.refreshTillShutdown() | |
| 241 | 241 | } |
| 242 | 242 | }: |
| 243 | 243 | case <-b.done: |
| 267 | 267 | if s.total > 0 && s.current >= s.total { |
| 268 | 268 | s.current = s.total |
| 269 | 269 | s.toComplete = true |
| 270 | go b.refreshNowTillShutdown() | |
| 270 | go b.refreshTillShutdown() | |
| 271 | 271 | } |
| 272 | 272 | }: |
| 273 | 273 | case <-b.done: |
| 388 | 388 | } |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | func (b *Bar) refreshNowTillShutdown() { | |
| 391 | func (b *Bar) refreshTillShutdown() { | |
| 392 | 392 | for { |
| 393 | 393 | select { |
| 394 | 394 | case b.container.refreshCh <- time.Now(): |