From 7158675aa83a7686ff17cf598fcf4024335e879a Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Mon, 9 Oct 2017 16:59:52 +0100 Subject: [PATCH] Add back continue. Accidentally removed in https://github.com/prometheus/prometheus/commit/15a931dbdb728160a40a5ad73b0ae258a05e7ff3 --- promql/functions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/promql/functions.go b/promql/functions.go index 60548f312..242220f63 100644 --- a/promql/functions.go +++ b/promql/functions.go @@ -173,7 +173,8 @@ func instantValue(ev *evaluator, arg Expr, isRate bool) Value { sampledInterval := lastSample.T - previousSample.T if sampledInterval == 0 { - // Avoid dividing by 0.float64 + // Avoid dividing by 0. + continue } if isRate {