fix rule logic bug described in #8817 (#8818)

Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
Steven Zou 2019-08-23 18:49:44 +08:00 committed by Ziming
parent 5c5f763439
commit a80969e7af

View File

@ -42,7 +42,7 @@ type evaluator struct {
func (e *evaluator) Process(artifacts []*res.Candidate) ([]*res.Candidate, error) {
// The updated proposal does not guarantee the order artifacts are provided, so we have to sort them first
sort.Slice(artifacts, func(i, j int) bool {
return artifacts[i].PushedTime < artifacts[j].PushedTime
return artifacts[i].PushedTime > artifacts[j].PushedTime
})
i := e.k