From 48eec1f3ba4cbabd82a93001b406e602985c959f Mon Sep 17 00:00:00 2001 From: hummypkg Date: Thu, 20 Oct 2011 22:39:22 +0000 Subject: [PATCH] more epgd logging --- main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index b3dc82b..ed1a53d 100644 --- a/main.c +++ b/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);