1
0
mirror of https://github.com/zrepl/zrepl.git synced 2025-07-16 06:05:05 +02:00

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

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