From 6b4f3b5f1fe327373194c33e8f78c3465d8e7d31 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 May 2018 17:35:43 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strip.vala b/src/strip.vala index 841e439..da97976 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -760,8 +760,8 @@ public class Strip : GLib.Object { var oldest = new DateTime.now_local(); oldest = oldest.add_months(-1 * StripApplication.opt_age_oldest); - var rtspan = oldest.difference(oldest) / GLib.TimeSpan.DAY; - GLib.debug("Checking oldest %s days difference", rtspan.to_string() ); + var rtspan = mailtime.difference(oldest) / GLib.TimeSpan.DAY; + GLib.debug("Checking oldest %s to %s %s days difference", rtspan.to_string() ); if (rtspan < 0) { GLib.debug("skip(2) file is %d days older than %d months", (int)rtspan, StripApplication.opt_age_oldest); return; -- 2.39.2