forked from TrueCloudLab/restic
saving a variable
This commit is contained in:
parent
761af08889
commit
2d73a273af
1 changed files with 1 additions and 2 deletions
|
@ -90,8 +90,7 @@ func ApplyPolicy(list Snapshots, p ExpirePolicy) (keep, remove Snapshots) {
|
||||||
{p.Yearly, y, -1},
|
{p.Yearly, y, -1},
|
||||||
}
|
}
|
||||||
|
|
||||||
var nr int
|
for nr, cur := range list {
|
||||||
for _, cur := range list {
|
|
||||||
nr = nr + 1
|
nr = nr + 1
|
||||||
var keepSnap bool
|
var keepSnap bool
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue