|
@ -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() |
|
|
log.Printf("[%s]测点缓存[m=%d] %d/%d", c.Id, c.MethodId, c.WindowSize, c.ring.Len()) |
|
|
if c.MethodId != 0 { |
|
|
|
|
|
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 { |
|
|