dlight.c: dlhist purge: remove magic number and set interval to 6h
This commit is contained in:
parent
90505d8e5b
commit
fce177b486
1 changed files with 3 additions and 1 deletions
4
dlight.c
4
dlight.c
|
|
@ -10,6 +10,8 @@
|
|||
#include "http.h"
|
||||
#include "rss.h"
|
||||
|
||||
#define DLHIST_PURGE_INTERVAL (60*60*6) /* 6 hours (in seconds) */
|
||||
|
||||
static void process_items(rss_t rss, struct target *t) {
|
||||
|
||||
int i;
|
||||
|
|
@ -44,7 +46,7 @@ static void process(struct cconf *config) {
|
|||
int i;
|
||||
struct http_data *data;
|
||||
|
||||
dlhist_purge(7200);
|
||||
dlhist_purge(DLHIST_PURGE_INTERVAL);
|
||||
|
||||
for(i=0; i < config->nr; i++) {
|
||||
struct target *t = config->target + i;
|
||||
|
|
|
|||
Reference in a new issue