mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-19 17:27:46 +02:00
Shrink the 'monthly' interval from 32 weeks to 32 days
This commit is contained in:
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user