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

Commit fd7abec

Browse files
author
dl0im
committed
fix: round robin task populate issue
1 parent df62024 commit fd7abec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

service/taskpoll/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (tpc *TaskPollController) populate() (int, *taskPollItemWrapper) {
7070

7171
for _, tp := range tpc.taskPoll {
7272
factor -= int(tp.Weight())
73-
if factor <= 0 {
73+
if factor < 0 {
7474
counter := tp.counter
7575

7676
tp.counter += 1

0 commit comments

Comments
 (0)