From e348f080bf1a68f75cbd8f38c248c7bd4206bb0e Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 15 Oct 2024 13:47:23 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=BB=91=E7=AA=97=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- et_cache/cacheHandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/et_cache/cacheHandler.go b/et_cache/cacheHandler.go index 8eca1bc..6f9a46c 100644 --- a/et_cache/cacheHandler.go +++ b/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