Skip to content
Snippets Groups Projects
Verified Commit 76dfe653 authored by Philipp Winter's avatar Philipp Winter
Browse files

Add +1 to the final bucket.

Our timeout is set to 60 by default, so the actual execution time is 60
+ a few milliseconds.  Adding +1 to the final bucket covers that case.
parent bb8ebf88
No related branches found
Tags bridgestrap-0.3.1
No related merge requests found
......@@ -20,7 +20,7 @@ import (
const (
// BridgestrapVersion specifies bridgestrap's version. The version number
// is based on semantic versioning: https://semver.org
BridgestrapVersion = "0.3.0"
BridgestrapVersion = "0.3.1"
)
type Route struct {
......
......@@ -109,7 +109,7 @@ func InitMetrics() {
for i := 0.5; i < TorTestTimeout.Seconds(); i *= 2 {
buckets = append(buckets, i)
}
buckets = append(buckets, TorTestTimeout.Seconds())
buckets = append(buckets, TorTestTimeout.Seconds()+1)
metrics.TorTestTime = promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: PrometheusNamespace,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment