]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- tiny improvement to cleanup algorithm
authorArvin Schnell <aschnell@suse.de>
Thu, 3 Mar 2011 14:41:25 +0000 (15:41 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 3 Mar 2011 14:41:25 +0000 (15:41 +0100)
snapper/Snapper.cc

index 9c76045b5a7399c8661e364a0a5ff3ba746e7ee8..4310981bcf776e9588158b38ec3deacebac8ea3c 100644 (file)
@@ -277,7 +277,10 @@ namespace snapper
            struct tm tmp2;
            localtime_r(&t2, &tmp2);
 
-           if (pred(tmp1, tmp2) && t1 > t2)
+           if (!pred(tmp1, tmp2))
+               return true;
+
+           if (t1 > t2)
                return false;
        }