src/strip.vala
authorAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:16:46 +0000 (17:16 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 May 2018 09:16:46 +0000 (17:16 +0800)
src/strip.vala.c

src/strip.vala

index d95f95c..ce5e7a5 100644 (file)
@@ -898,11 +898,11 @@ public class Strip : GLib.Object {
                                GLib.debug("Skip directory %s is newer than min year: %d", subpath, newest.get_year());
                                return;
                        }
-                       if (year == newest.get_year() &&  month != 999 && month > newest.get_month()) {
+                       if (year == newest.get_year() &&  month > newest.get_month()) {
                                GLib.debug("Skip directory %s is newer than min year: %d/%d", subpath, newest.get_year() , newest.get_month() );
                                return;
                        }
-               if (year == newest.get_year() &&  month == newest.get_month() day  != 999 &&  day > newest.get_day_of_month()) {
+               if (year == newest.get_year() &&  month == newest.get_month() && day > newest.get_day_of_month()) {
                                GLib.debug("Skip directory %s is newer than min year: %d/%d/%d", subpath, newest.get_year() , newest.get_month(), newest.get_day_of_month() );          
                                return;
                        }