From 8b20cb1e8d6be06b6b42657e45ee6da74fc2814b Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Sat, 27 Jan 2018 08:48:13 +0100 Subject: [PATCH] last config success time gauge: use SetToCurrentTime() (#3750) Signed-off-by: Julien Pivotto --- cmd/prometheus/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index a5885e376..a38ceec1e 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -587,7 +587,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...func(*config.Config defer func() { if err == nil { configSuccess.Set(1) - configSuccessTime.Set(float64(time.Now().Unix())) + configSuccessTime.SetToCurrentTime() } else { configSuccess.Set(0) }