Browse Source

update 滑窗数据数量判定

dev
lucas 2 weeks ago
parent
commit
e348f080bf
  1. 2
      et_cache/cacheHandler.go

2
et_cache/cacheHandler.go

@ -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

Loading…
Cancel
Save