Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这不是bug吗? #811

Open
huxiaofeng1983 opened this issue Nov 7, 2023 · 0 comments
Open

这不是bug吗? #811

huxiaofeng1983 opened this issue Nov 7, 2023 · 0 comments

Comments

@huxiaofeng1983
Copy link

Describe the bug
BalanceRoundRobin代码问题

To Reproduce
for (int i = 0; i < sumWeight; i++) { for (int index = 0; i < length; i++) { if (weightList[index] > 0) { weightList[index] = weightList[index] - 1; nextSequence--; if (nextSequence == 0) { return entityList.get(index); } } } }

内层循环 for (int index = 0; i < length; i++) {...}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant