Skip to content

Commit

Permalink
Merge pull request #7 from trivialbadger/dev
Browse files Browse the repository at this point in the history
Convert `ping_rtt_std_deviation` to Seconds from nanoseconds
  • Loading branch information
dennisme authored Feb 23, 2024
2 parents fc9c2ca + 0e01f42 commit 217c250
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 217c250

Please sign in to comment.