From 246860b7ec110f68faed74e2f8ceb6cf8737815e Mon Sep 17 00:00:00 2001 From: hummypkg Date: Fri, 14 Oct 2011 23:08:46 +0000 Subject: [PATCH] add pragmas --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index b57fa20..b3dc82b 100644 --- a/main.c +++ b/main.c @@ -164,6 +164,8 @@ sqlitedumpstart(char *file) exit(1); } + EXEC("pragma journal_mode = off"); + EXEC("pragma synchronous = off"); EXEC( "create table epg (" "[service_id] integer, [event_id] integer, " @@ -816,9 +818,10 @@ nextopt: return 1; } +printf("epgd: DB time %ld, last %ld\n", st.st_mtime, last); if (st.st_mtime > last) { -printf("epgd: DB time %ld > last %ld\n", st.st_mtime, last); +printf("epgd: Regenerating.\n"); sqlitedumpstart(argv[1]); parse(epgpath, sqlitedump, NULL, filter); sqlitedumpend(argv[1]);