|
|
@ -78,7 +78,7 @@ func (the *CacheHandler) enqueue(p *common_models.ProcessData) *common_models.Pr |
|
|
|
} |
|
|
|
|
|
|
|
func (the *CacheHandler) windowCalc(raw float64, window common_models.CacheWindow) (float64, bool) { |
|
|
|
if window.Size() == 0 { |
|
|
|
if window.Size() == 0 || window.Len() == 0 { |
|
|
|
return raw, false |
|
|
|
} |
|
|
|
result := 0.0 |
|
|
|