Skip to content

Commit

Permalink
Convert ping_rtt_std_deviation to Seconds from nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialbadger committed Feb 21, 2024
1 parent fc9c2ca commit 5123084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collector/icmp_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func PingHandler() http.HandlerFunc {
metrics.MinGauge.Set(stats.MinRtt.Seconds())
metrics.AvgGauge.Set(stats.AvgRtt.Seconds())
metrics.MaxGauge.Set(stats.MaxRtt.Seconds())
metrics.StddevGauge.Set(float64(stats.StdDevRtt))
metrics.StddevGauge.Set(stats.StdDevRtt.Seconds())
metrics.LossGauge.Set(stats.PacketLoss)
metrics.ProbeDurationGauge.Set(time.Since(start).Seconds())
}
Expand Down

0 comments on commit 5123084

Please sign in to comment.