From 6937c3f2bd8cf40ce8d2f0d3fea37f076e4ce709 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Sat, 4 Mar 2017 20:59:09 +0100 Subject: ripe-atlas-fw: imported version 4740 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- networking/rptaddrs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'networking/rptaddrs.c') diff --git a/networking/rptaddrs.c b/networking/rptaddrs.c index 33d20cf..8506ac8 100644 --- a/networking/rptaddrs.c +++ b/networking/rptaddrs.c @@ -642,12 +642,10 @@ static int check_cache(char *cache_name) need_report= 0; if (stat(cache_name, &sb) == 0 && - sb.st_mtime < time(NULL) - 30 * 24 * 3600) + sb.st_mtime < time(NULL) - 3600) { /* This basically makes sure that this information gets - * reported again when the clock is set for the first time. - * A side effect is that it gets reported once a month if - * nothing changes. + * reported regularly. */ need_report= 1; } -- cgit v1.2.3