From 3ffe443ea21a6f484a94f1a8589123bc38a39923 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 13 Mar 2011 03:14:11 -0400 Subject: [PATCH] Run RSS pulls no more than once every 15 minutes. The last_run check had been pulled and we were running every minute. --- citadel/modules/rssclient/serv_rssclient.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/citadel/modules/rssclient/serv_rssclient.c b/citadel/modules/rssclient/serv_rssclient.c index 0bb6c778d..f9e6544de 100644 --- a/citadel/modules/rssclient/serv_rssclient.c +++ b/citadel/modules/rssclient/serv_rssclient.c @@ -1483,6 +1483,11 @@ void rssclient_scan(void) { static int doing_rssclient = 0; rssnetcfg *rptr = NULL; + /* Run no more than once every 15 minutes. */ + if ((time(NULL) - last_run) < 900) { + return; + } + /* * This is a simple concurrency check to make sure only one rssclient run * is done at a time. We could do this with a mutex, but since we -- 2.39.2