Skip to content

Commit

Permalink
fix: 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 23, 2024
1 parent 1c0ef71 commit 0e01f42
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 0e01f42

Please sign in to comment.