1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00

add optimizer

This commit is contained in:
2020-04-12 11:13:23 +08:00
parent f398523ba6
commit acdbd39a08
2 changed files with 29 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ func (scheduler *SchedulerFair) Start() {
go func() {
for {
log.Debug("Scheduling")
time.Sleep(time.Second * 5)
time.Sleep(time.Millisecond * 100)
scheduler.scheduling.Lock()
scheduler.mu.Lock()
queue := scheduler.nextQueue