Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivanov committed Feb 22, 2024
1 parent 343a906 commit f421e44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,13 @@ func (processor *BackgroundProcessor) RunAsyncMetricsCollector(fieldProcessor Fi
if numGC > 0 {
numGC = numGC - 1
}
pauseNsInfSlice := v.([]interface{})

pauseNs := [256]uint64{}
for key, value := range pauseNsInfSlice {
pauseNs[key] = uint64(value.(float64))
}

pauseNs := v.([256]uint64)
pauseNsForNumGC := pauseNs[(numGC+255)%256]
if pauseNsForNumGC > 0 {
pauseNsForNumGC = pauseNsForNumGC / 1000000
Expand Down

0 comments on commit f421e44

Please sign in to comment.