mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 02:19:02 +08:00
fix: min step interval to 60 (#7354)
This commit is contained in:
parent
b3fa1ad60e
commit
800ca9d329
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user