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

@ -86,7 +86,7 @@ func UpdateCapMargin(newCapMargin float64) bool {
var StarvationFactor = PowerThreshold / CapMargin
// Window size for running average
var WindowSize = 20
var ConsiderationWindowSize = 20
// Update the window size.
func UpdateWindowSize(newWindowSize int) bool {
@ -94,7 +94,7 @@ func UpdateWindowSize(newWindowSize int) bool {
if newWindowSize == 0 {
return false
} else {
WindowSize = newWindowSize
ConsiderationWindowSize = newWindowSize
return true
}
}