From 5f0816ddc4bde3856a1c5dae80aaacbf62cfeac6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 May 2018 17:14:27 +0800 Subject: [PATCH] src/strip.vala src/strip.vala.c --- src/strip.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index a4c5a69..c425806 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -754,14 +754,14 @@ public class Strip : GLib.Object { oldest = oldest.add_months(-1 * StripApplication.opt_age_oldest); var rtspan = oldest.difference(oldest) / GLib.TimeSpan.DAY; - if (rtspan > 0) { + if (rtspan < 0) { GLib.debug("skip(2) file is %d days older than %d months", (int)rtspan, StripApplication.opt_age_oldest); return; } var newest = new DateTime.now_local(); newest = newest.add_months(-1 * StripApplication.opt_age_newest); rtspan = mailtime.difference(newest) / GLib.TimeSpan.DAY; - if (rtspan < 0) { + if (rtspan > 0) { GLib.debug("skip(2) file is %d days newer than %d months : %s", (int)rtspan, StripApplication.opt_age_newest, mailtime.format("%Y-%m-%d %H:%M:%S")); return; -- 2.39.2