fix: min step interval to 60 (#7354)

This commit is contained in:
Nityananda Gohain 2025-03-18 19:48:12 +05:30 committed by GitHub
parent b3fa1ad60e
commit 800ca9d329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ func PastDayRoundOff() int64 {
func MinAllowedStepInterval(start, end int64) int64 {
step := (end - start) / constants.MaxAllowedPointsInTimeSeries / 1000
if step < 60 {
return step
return 60
}
// return the nearest lower multiple of 60
return step - step%60