changeset 10 | d07309450285 |
parent 9 | bdf20e6eefd7 |
child 13 | 23a242d7b7fa |
--- a/main.c Wed Sep 28 09:04:16 2011 -0700 +++ b/main.c Mon Oct 17 09:12:00 2011 -0700 @@ -104,10 +104,16 @@ argc -= optind; argv += optind; + /* set timer vars for lines/sec counter */ + if ( v.debugmode > 2 ) { + v.timer.start = time( NULL ); + v.timer.lines = 0; + } + /* get the initial database handle or bomb immediately. */ if ( db_attach() != SQLITE_OK ) exit( 1 ); /* enter stdin parsing loop */ - return accept_loop(); + return( accept_loop() ); }