redrawActiveProgress redraws the active progress bar after output. Caller MUST hold printMutex.
()
| 31 | // redrawActiveProgress redraws the active progress bar after output. |
| 32 | // Caller MUST hold printMutex. |
| 33 | func redrawActiveProgress() { |
| 34 | if activeProgress != nil && progressEnabled() { |
| 35 | c := atomic.LoadInt64(&activeProgress.completed) |
| 36 | if c < activeProgress.total { |
| 37 | activeProgress.renderLocked(c) |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // progress tracks completion of requests within a technique and renders |
| 43 | // an inline progress bar on stderr. |
no test coverage detected