progressui: prioritize already shown logs

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-19.03
Tonis Tiigi 2019-04-02 08:45:40 -07:00
parent 9363cbb19a
commit 8908d4934a
1 changed files with 2 additions and 2 deletions

View File

@ -414,8 +414,8 @@ func setupTerminals(jobs []*job, height int, all bool) []*job {
}
}
sort.Slice(candidates, func(i, j int) bool {
idxI := candidates[i].vertex.termBytes + candidates[i].vertex.termCount*10
idxJ := candidates[j].vertex.termBytes + candidates[j].vertex.termCount*10
idxI := candidates[i].vertex.termBytes + candidates[i].vertex.termCount*50
idxJ := candidates[j].vertex.termBytes + candidates[j].vertex.termCount*50
return idxI > idxJ
})