Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Unified Diff: prober/go/prober/main.go

Issue 1105383004: Fix prober latency calculation. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: prober/go/prober/main.go
diff --git a/prober/go/prober/main.go b/prober/go/prober/main.go
index f8a280a8c0bb5c597a39115d75bd4426d4f4e1ad..447a2612711f15fd176f2976911bb1ec83227a5a 100644
--- a/prober/go/prober/main.go
+++ b/prober/go/prober/main.go
@@ -275,7 +275,7 @@ func probeOneRound(cfg Probes, c *http.Client) {
}
probe.failure.Update(0)
- probe.latency.Update(d.Nanoseconds() * 1000 * 1000)
+ probe.latency.Update(d.Nanoseconds() / (1000 * 1000))
borenet 2015/04/29 19:15:56 Again, this could be rewritten as (d.Nanoseconds()
jcgregorio 2015/04/29 19:21:10 Fixed in next CL.
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698