Skip to content

Commit

Permalink
fix make timing (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytetra authored and k8s-ci-robot committed Dec 5, 2018
1 parent f863b87 commit 55f125c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/suggestion/grid_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ func (s *GridSuggestService) GetSuggestions(ctx context.Context, in *api.GetSugg
if reqnum == 0 {
reqnum = len(grids)
}
trials := make([]*api.Trial, reqnum)
if iteration+reqnum > len(grids) {
reqnum = len(grids) - iteration
}
trials := make([]*api.Trial, reqnum)
if reqnum <= 0 {
return &api.GetSuggestionsReply{Trials: []*api.Trial{}}, err
}
Expand Down

0 comments on commit 55f125c

Please sign in to comment.