1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 22:01:55 +00:00
This commit is contained in:
Newnius 2020-06-15 15:05:15 +08:00
parent 2c2bb5c5ea
commit d8e5d36311

View File

@ -138,7 +138,7 @@ func (X Allocation) Crossover(Y eaopt.Genome, rng *rand.Rand) {
// make sure n > 0 && round > 0
cnt := 0
for _, tasks := range X.TasksOnNode {
for _ := range tasks {
for range tasks {
cnt++
}
}
@ -256,7 +256,7 @@ func (X Allocation) Crossover(Y eaopt.Genome, rng *rand.Rand) {
}
cnt = 0
for _, tasks := range X.TasksOnNode {
for _ := range tasks {
for range tasks {
cnt++
}
}