mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-06 22:01:55 +00:00
update
This commit is contained in:
parent
2c2bb5c5ea
commit
d8e5d36311
@ -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++
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user