more epgd logging
This commit is contained in:
parent
246860b7ec
commit
48eec1f3ba
8
main.c
8
main.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue