Browse Source

update 默认0缓存方法不打印

dev
lucas 1 month ago
parent
commit
8d4d3339b6
  1. 2
      cacheData.go

2
cacheData.go

@ -115,7 +115,9 @@ func (c *CacheWindow) EnQueue(d any) {
c.LatestData = d c.LatestData = d
c.ring.Value = d c.ring.Value = d
c.ring = c.ring.Next() c.ring = c.ring.Next()
if c.MethodId != 0 {
log.Printf("[%s]测点缓存[m=%d] %d/%d", c.Id, c.MethodId, c.WindowSize, c.ring.Len()) log.Printf("[%s]测点缓存[m=%d] %d/%d", c.Id, c.MethodId, c.WindowSize, c.ring.Len())
}
} }
func (c *CacheWindow) EnQueueAnalyzeData(d AnalyzeData) { func (c *CacheWindow) EnQueueAnalyzeData(d AnalyzeData) {
if c.windowLen < c.WindowSize { if c.windowLen < c.WindowSize {

Loading…
Cancel
Save