fix(alerting): Unable to set maintenance interval to all day (#475)

This commit is contained in:
Sergey Khokhlov
2023-05-18 01:45:18 +03:00
committed by GitHub
parent 2a45a151da
commit c3e1835dd6
2 changed files with 18 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func (c *Config) ValidateAndSetDefaults() error {
if err != nil {
return err
}
if c.Duration <= 0 || c.Duration >= 24*time.Hour {
if c.Duration <= 0 || c.Duration > 24*time.Hour {
return errInvalidMaintenanceDuration
}
return nil