Skip to content

Commit

Permalink
progressui: prioritize already shown logs
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Apr 2, 2019
1 parent 9363cbb commit 8908d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/progress/progressui/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down

0 comments on commit 8908d49

Please sign in to comment.