From 2276ee3c1cfb037e3c0797c46c4f2dec84d595fa Mon Sep 17 00:00:00 2001 From: Brett Langdon Date: Tue, 23 Jul 2013 23:24:37 -0400 Subject: [PATCH] make -e cli option actually work --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 659fd50..acf2f4b 100644 --- a/src/main.c +++ b/src/main.c @@ -102,7 +102,7 @@ int main(int argc, char* argv[]){ int c; int option_index = 0; - while((c = getopt_long(argc, argv, "hp:u:w:c:", long_options, &option_index)) != -1){ + while((c = getopt_long(argc, argv, "hp:u:w:c:e:", long_options, &option_index)) != -1){ if(c == 0){ switch(option_index){ case 0: @@ -170,6 +170,7 @@ int main(int argc, char* argv[]){ queue_init(&requests); + printf("Using Expire Time of %d sec\r\n", record_expire_time); printf("Opening Cache File: \"%s\"\r\n", cache_file); db = kcdbnew(); if(!kcdbopen(db, cache_file, KCOWRITER | KCOCREATE)){