#include <sys/wait.h>
#include <string.h>
#include <syslog.h>
+#include <time.h>
#include "configuration.h"
#include "syscalls.h"
*/
}
+/** @brief Expire noticed.db */
+static void expire_noticed(void) {
+ time_t now;
+
+ time(&now);
+ trackdb_expire_noticed(now - config->noticed_history * 86400);
+}
+
int main(int argc, char **argv) {
int n;
struct sigaction sa;
do_all(rescan_collection);
/* Check that every track still exists */
recheck_collection(0);
+ /* Expire noticed.db */
+ expire_noticed();
}
else {
/* Rescan specified collections */