Changed Window to ConsiderationWindow.
This commit is contained in:
parent
916581067b
commit
2cd77a7ba8
3 changed files with 19 additions and 19 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue