Changed Window to ConsiderationWindow.

This commit is contained in:
Pradyumna Kaushik 2017-01-28 18:29:00 -05:00
parent 916581067b
commit 2cd77a7ba8
3 changed files with 19 additions and 19 deletions

View file

@ -251,7 +251,7 @@ func (capper ClusterwideCapper) FCFSDeterminedCap(totalPower map[string]float64,
return 100, errors.New("Invalid argument: totalPower")
} else {
// Need to calculate the running average
runningAverage := runAvg.Calc(taskWrapper{task: *newTask}, constants.WindowSize)
runningAverage := runAvg.Calc(taskWrapper{task: *newTask}, constants.ConsiderationWindowSize)
// For each node, calculate the percentage of the running average to the total power.
ratios := make(map[string]float64)
for host, tpower := range totalPower {