Skip to content

Commit

Permalink
libbeat: fix uptime formula (#5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch authored and Steffen Siering committed Nov 10, 2017
1 parent 47b78ee commit abf3d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/cmd/instance/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ func reportInfo(_ monitoring.Mode, V monitoring.Visitor) {
defer V.OnRegistryFinished()

delta := time.Since(startTime)
uptime := int64(delta.Seconds())*1000 + int64(delta.Nanoseconds()/1000000)
uptime := int64(delta / time.Millisecond)
monitoring.ReportInt(V, "uptime.ms", uptime)
}

0 comments on commit abf3d18

Please sign in to comment.