last config success time gauge: use SetToCurrentTime() (#3750)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2018-01-27 08:48:13 +01:00 committed by Brian Brazil
parent 7dc05538f7
commit 8b20cb1e8d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}