Skip to content

Commit

Permalink
[ISSUE 10153][Go Function] fix time unit ns -> ms (apache#10160)
Browse files Browse the repository at this point in the history
Co-authored-by: linjunhua <[email protected]>
  • Loading branch information
linlinnn and linjunhua authored Apr 19, 2021
1 parent 8b46d59 commit e9bf54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar-function-go/pf/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (stat *StatWithLabelValues) processTimeEnd() {
if stat.processStartTime != 0 {
now := time.Now()
duration := now.UnixNano() - stat.processStartTime
stat.statProcessLatencyMs.Observe(float64(duration))
stat.statProcessLatencyMs.Observe(float64(duration) / 1e6)
}
}

Expand Down

0 comments on commit e9bf54a

Please sign in to comment.