* Please see COPYING for details
*
* Copyright (c) 2007 Toni Spets
- * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * $Id$ */
+ */
#include "conky.h"
+#include "logging.h"
#include "prss.h"
-#include <stdio.h>
-#include <string.h>
#include <time.h>
#include <assert.h>
#include <curl/curl.h>
return realsize;
}
-int rss_delay(int *wait, int delay)
+int rss_delay(int *wait_time, int delay)
{
time_t now = time(NULL);
}
delay *= 60;
- if (!*wait) {
- *wait = now + delay;
+ if (!*wait_time) {
+ *wait_time = now + delay;
return 1;
}
- if (now >= *wait + delay) {
- *wait = now + delay;
+ if (now >= *wait_time + delay) {
+ *wait_time = now + delay;
return 1;
}