1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 22:31:55 +00:00
This commit is contained in:
Newnius 2020-04-13 23:09:26 +08:00
parent 8d06ddd9a0
commit 1307cddedf

View File

@ -58,7 +58,7 @@ func (scheduler *SchedulerFair) Start() {
continue
}
scheduler.schedulingMu.Lock()
if scheduler.schedulingJobsCnt >= pool.poolsCount {
if scheduler.schedulingJobsCnt >= pool.poolsCount/10 {
scheduler.schedulingMu.Unlock()
continue
}