From: Arvin Schnell Date: Thu, 3 Mar 2011 14:41:25 +0000 (+0100) Subject: - tiny improvement to cleanup algorithm X-Git-Tag: v0.1.3~436 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2625fc8c61627cd2d22cd76361e5d127106b73e;p=thirdparty%2Fsnapper.git - tiny improvement to cleanup algorithm --- diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 9c76045b..4310981b 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -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; }