func (s *Scheduler) getRunnableJobs() bug?
fxk2006 opened this issue · comments
fxk2006 commented
func (s *Scheduler) getRunnableJobs() (running_jobs [MAXJOBNUM]*Job, n int) {
runnableJobs := [MAXJOBNUM]*Job{}
n = 0
sort.Sort(s)
for i := 0; i < s.size; i++ {
if s.jobs[i].shouldRun() {
runnableJobs[n] = s.jobs[i]
n++
}
}
return runnableJobs, n
}
natan streppel commented
Hi @fxk2006! I'm sorry, but I didn't understand the bug here. What is happening and what was expected?
natan streppel commented
Closing due to inactivity