fix(backend/heuristics): fixed panic in performanceAggr message encoding
This commit is contained in:
parent
ab2a800b7c
commit
8d0d05c2cf
1 changed files with 2 additions and 1 deletions
|
|
@ -109,8 +109,9 @@ func (b *PerformanceAggregator) Build() Message {
|
|||
b.PerformanceTrackAggr.AvgCPU = 100 - uint64(math.Round(b.sumTickRate*100/b.count))
|
||||
b.PerformanceTrackAggr.AvgTotalJSHeapSize = uint64(math.Round(b.sumTotalJSHeapSize / b.count))
|
||||
b.PerformanceTrackAggr.AvgUsedJSHeapSize = uint64(math.Round(b.sumUsedJSHeapSize / b.count))
|
||||
msg := b.PerformanceTrackAggr
|
||||
b.reset()
|
||||
return b.PerformanceTrackAggr
|
||||
return msg
|
||||
}
|
||||
b.reset()
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue