Commit ccc1df31 by Julien Pivotto

Fix comment

Signed-off-by: 's avatarJulien Pivotto <roidelapluie@inuits.eu>
parent 98e14611
......@@ -1010,7 +1010,7 @@ mainLoop:
// See https://github.com/prometheus/prometheus/issues/7846
scrapeTime := time.Now()
if interval > 100*scrapeTimestampTolerance {
// For some reason, a ticker might have been skipped, in which case we
// For some reason, a tick might have been skipped, in which case we
// would call alignedScrapeTime.Add(interval) multiple times.
for scrapeTime.Sub(alignedScrapeTime) >= interval {
alignedScrapeTime = alignedScrapeTime.Add(interval)
......
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