Commit 676d5851 authored by Sebastian Stark's avatar Sebastian Stark

use snapshotState constant (none) instead of literal value (0)

parent 750a4e5b
......@@ -156,7 +156,7 @@ func subcmdRun() (ferr error) {
log.Println("less than 2 snapshots found, not pruning")
return
}
obsolete := snapshots.state(stateObsolete, 0)
obsolete := snapshots.state(stateObsolete, none)
// We only delete as long as we need *AND* we have something to delete
for !checkFreeSpace(config.repository, config.MinPercSpace, config.MinGiBSpace) && len(obsolete) > 0 {
// If there is not enough space, purge the oldest snapshot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment