Changed the loop as the Hosts is now a map and not a list and now looping over the keys is required.
This commit is contained in:
parent
9365c2e51d
commit
b311ee81f5
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ func (capper ClusterwideCapper) CleverRecap(totalPower map[string]float64,
|
||||||
wattsUsages := make(map[string][]float64)
|
wattsUsages := make(map[string][]float64)
|
||||||
hostOfFinishedTask := ""
|
hostOfFinishedTask := ""
|
||||||
indexOfFinishedTask := -1
|
indexOfFinishedTask := -1
|
||||||
for _, host := range constants.Hosts {
|
for host, _ := range constants.Hosts {
|
||||||
wattsUsages[host] = []float64{0.0}
|
wattsUsages[host] = []float64{0.0}
|
||||||
}
|
}
|
||||||
for host, tasks := range taskMonitor {
|
for host, tasks := range taskMonitor {
|
||||||
|
|
Reference in a new issue