more epgd logging

This commit is contained in:
hummypkg 2011-10-20 22:39:22 +00:00 committed by HummyPkg
parent 246860b7ec
commit 48eec1f3ba
1 changed files with 6 additions and 2 deletions

8
main.c
View File

@ -818,13 +818,17 @@ nextopt:
return 1;
}
printf("epgd: DB time %ld, last %ld\n", st.st_mtime, last);
printf("epgd: DB time %ld, last %ld\n",
st.st_mtime, last);
if (st.st_mtime > last)
{
printf("epgd: Regenerating.\n");
time_t tm = time(NULL);
printf("epgd: Regenerating.\n");
sqlitedumpstart(argv[1]);
parse(epgpath, sqlitedump, NULL, filter);
sqlitedumpend(argv[1]);
printf("epgd: Done in %d seconds.\n",
time(NULL) - tm);
}
last = st.st_mtime;
sleep(900);