Skip to content

Commit

Permalink
优化下代码
Browse files Browse the repository at this point in the history
  • Loading branch information
egametang committed Oct 10, 2023
1 parent 9bd2558 commit 67dc43a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ private void Loop()
{
Thread.Sleep(1);

int n = this.fiberManager.Count() / this.threads.Count;
// count最小为1
count = n > 1? n : 1;
count = this.fiberManager.Count() / this.threads.Count + 1;
}

--count;
Expand Down

0 comments on commit 67dc43a

Please sign in to comment.