]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Fix off-by-one bug in find_outdated_snapshot().
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index 6101f17742c7ba8ef6e3a57a1878dfccb7227feb..f04be8f95595a41b33478a1823ea77f53389ca35 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -385,14 +385,14 @@ static struct snapshot *find_outdated_snapshot(struct snapshot_list *sl)
        int i;
        struct snapshot *s;
 
-       DSS_DEBUG_LOG("looking for snapshots belonging to intervals greater than %d\n",
+       DSS_DEBUG_LOG("looking for snapshots belonging to intervals >= %d\n",
                conf.num_intervals_arg);
        FOR_EACH_SNAPSHOT(s, i, sl) {
                if (snapshot_is_being_created(s))
                        continue;
                if (is_reference_snapshot(s))
                        continue;
-               if (s->interval <= conf.num_intervals_arg)
+               if (s->interval < conf.num_intervals_arg)
                        continue;
                return s;
        }