start time should minus 60 sencond (#214)

Reviewed-on: https://git.infini.ltd/infini/console/pulls/214
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-committed-by: liugq <silenceqi@hotmail.com>
This commit is contained in:
liugq 2023-11-02 16:11:14 +08:00 committed by medcl
parent adf642581e
commit d000672ffd
1 changed files with 1 additions and 1 deletions

View File

@ -947,7 +947,7 @@ func newParameterCtx(rule *alerting.Rule, checkResults *alerting.ConditionResult
max = checkResults.QueryResult.Max max = checkResults.QueryResult.Max
if v, ok := min.(int64); ok { if v, ok := min.(int64); ok {
//expand 60s //expand 60s
v = v + int64(time.Second * 60) v = v - int64(time.Second * 60)
min = time.Unix(v/1000, v%1000 * 1e5).UTC().Format("2006-01-02T15:04:05.999Z") min = time.Unix(v/1000, v%1000 * 1e5).UTC().Format("2006-01-02T15:04:05.999Z")
} }
if v, ok := max.(int64); ok { if v, ok := max.(int64); ok {