diff options
Diffstat (limited to 'utility/shell.c')
-rw-r--r-- | utility/shell.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utility/shell.c b/utility/shell.c index 0e9d646..2f2f43b 100644 --- a/utility/shell.c +++ b/utility/shell.c | |||
@@ -61,10 +61,10 @@ void print_summary(config_t *cfg) { | |||
61 | 61 | ||
62 | fstat = (config_filestat_t *)cfg->input_files->elts; | 62 | fstat = (config_filestat_t *)cfg->input_files->elts; |
63 | 63 | ||
64 | printf("Execution Summary\n"); | 64 | printf("Execution Summary\nParsed %d files\n", cfg->input_files->nelts); |
65 | for (i=0, m=cfg->input_files->nelts; i<m; i++) { | 65 | for (i=0, m=cfg->input_files->nelts; i<m; i++) { |
66 | printf(" File: %s\n" | 66 | printf(" File: %s\n" |
67 | " Lines Parsed %d out of %d (Skipped %d, Bad %d)\n" | 67 | " Lines Parsed %'d out of %'d (Skipped %'d, Bad %'d)\n" |
68 | " Status: %s\n" | 68 | " Status: %s\n" |
69 | " Duration: %02"APR_TIME_T_FMT":%02"APR_TIME_T_FMT".%"APR_TIME_T_FMT" (minutes, seconds, and miliseconds)\n" | 69 | " Duration: %02"APR_TIME_T_FMT":%02"APR_TIME_T_FMT".%"APR_TIME_T_FMT" (minutes, seconds, and miliseconds)\n" |
70 | "\n", | 70 | "\n", |
@@ -73,7 +73,7 @@ void print_summary(config_t *cfg) { | |||
73 | fstat[i].linesparsed, fstat[i].lineskipped, fstat[i].linesbad, | 73 | fstat[i].linesparsed, fstat[i].lineskipped, fstat[i].linesbad, |
74 | fstat[i].result, | 74 | fstat[i].result, |
75 | apr_time_sec(fstat[i].stop - fstat[i].start)/60, | 75 | apr_time_sec(fstat[i].stop - fstat[i].start)/60, |
76 | apr_time_sec(fstat[i].stop - fstat[i].start), | 76 | apr_time_sec(fstat[i].stop - fstat[i].start) % 60, |
77 | apr_time_msec(fstat[i].stop - fstat[i].start) | 77 | apr_time_msec(fstat[i].stop - fstat[i].start) |
78 | ); | 78 | ); |
79 | } | 79 | } |
@@ -192,6 +192,7 @@ int main(int argc, const char *const argv[]) | |||
192 | } | 192 | } |
193 | } | 193 | } |
194 | if (!apr_is_empty_array(cfg->input_files)) { | 194 | if (!apr_is_empty_array(cfg->input_files)) { |
195 | parser_split_logs(cfg); | ||
195 | config_filestat_t *filelist; | 196 | config_filestat_t *filelist; |
196 | int f, l; | 197 | int f, l; |
197 | filelist = (config_filestat_t *)cfg->input_files->elts; | 198 | filelist = (config_filestat_t *)cfg->input_files->elts; |