1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:06:09 -07:00

go.tools/dashboard/app: fix column order for -temp builders

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/138760044
This commit is contained in:
Andrew Gerrand 2014-08-28 10:57:52 +10:00
parent f34e673079
commit 61ce470a5e

View File

@ -158,10 +158,10 @@ func (s builderOrder) Less(i, j int) bool {
return pi < pj
}
func builderPriority(builder string) int {
func builderPriority(builder string) (p int) {
// Put -temp builders at the end, always.
if strings.HasSuffix(builder, "-temp") {
return 20
defer func() { p += 20 }()
}
// Group race builders together.
if isRace(builder) {