Shrink the 'monthly' interval from 32 weeks to 32 days

This commit is contained in:
Dirk Engling 2017-07-08 16:29:04 +02:00 committed by Christian Schwarz
parent 9ab6f18f82
commit 5afbedbd87

View File

@ -598,7 +598,7 @@ func parseRetentionGridIntervalString(e string) (intervals []RetentionInterval,
case "w":
durationUnit = 24 * 7 * time.Hour
case "mon":
durationUnit = 32 * 24 * 7 * time.Hour
durationUnit = 24 * 32 * time.Hour
default:
err = fmt.Errorf("contains unknown time unit '%s'", comps[3])
return nil, err