GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

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
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
const ( const (
// BridgestrapVersion specifies bridgestrap's version. The version number // BridgestrapVersion specifies bridgestrap's version. The version number
// is based on semantic versioning: https://semver.org // is based on semantic versioning: https://semver.org
BridgestrapVersion = "0.3.0" BridgestrapVersion = "0.3.1"
) )
type Route struct { type Route struct {
......
...@@ -109,7 +109,7 @@ func InitMetrics() { ...@@ -109,7 +109,7 @@ func InitMetrics() {
for i := 0.5; i < TorTestTimeout.Seconds(); i *= 2 { for i := 0.5; i < TorTestTimeout.Seconds(); i *= 2 {
buckets = append(buckets, i) buckets = append(buckets, i)
} }
buckets = append(buckets, TorTestTimeout.Seconds()) buckets = append(buckets, TorTestTimeout.Seconds()+1)
metrics.TorTestTime = promauto.NewHistogram(prometheus.HistogramOpts{ metrics.TorTestTime = promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: PrometheusNamespace, Namespace: PrometheusNamespace,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment