app/vmalert: use proper timestamp in setConfigSuccess()

This commit is contained in:
Aliaksandr Valialkin 2023-07-28 11:15:58 -07:00
parent 116623a0f0
commit fcf5e33e6a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -399,7 +399,7 @@ func configsEqual(a, b []config.Group) bool {
// setConfigSuccess sets config reload status to 1.
func setConfigSuccess(at uint64) {
configSuccess.Set(1)
configTimestamp.Set(fasttime.UnixTimestamp())
configTimestamp.Set(at)
// reset the error if any
setConfigErr(nil)
}