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

This commit is contained in:
Sergey Khokhlov authored and GitHub committed 2023-05-17 18:45:18 -04:00
1 parent 2a45a151da
commit c3e1835dd6
2 files changed
+18 -1

No files matched your search

+1 -1
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