Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
fix: round robin task populate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dl0im committed Aug 25, 2022
1 parent df62024 commit fd7abec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/taskpoll/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (tpc *TaskPollController) populate() (int, *taskPollItemWrapper) {

for _, tp := range tpc.taskPoll {
factor -= int(tp.Weight())
if factor <= 0 {
if factor < 0 {
counter := tp.counter

tp.counter += 1
Expand Down

0 comments on commit fd7abec

Please sign in to comment.