diff options
author | Edward Rudd <urkle@outoforder.cc> | 2009-03-11 04:27:34 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2009-03-11 04:27:34 (GMT) |
commit | 99867e8a2eca4421075900e44f24cfd749db7dcb (patch) | |
tree | 4e895b4d820412ea502a7bb4e3804d2bdf673d67 /utility/config.h | |
parent | b8cb3df3992184fe9dcd3fda36157874bb3f0c9e (diff) |
add in splitting code
fixed time display (modulus of seconds)
Diffstat (limited to 'utility/config.h')
-rw-r--r-- | utility/config.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/utility/config.h b/utility/config.h index ebedec3..91c6f65 100644 --- a/utility/config.h +++ b/utility/config.h | |||
@@ -41,6 +41,20 @@ struct config_t { | |||
41 | /** list of files to scan */ | 41 | /** list of files to scan */ |
42 | apr_array_header_t *input_files; | 42 | apr_array_header_t *input_files; |
43 | 43 | ||
44 | /** split the input file before processing */ | ||
45 | int split_enabled; | ||
46 | /** the number of files to split each input file into */ | ||
47 | int split_count; | ||
48 | /** the minimum number of lines for each piece */ | ||
49 | int split_minimum; | ||
50 | /** the maximum number of lines for each piece */ | ||
51 | int split_maximum; | ||
52 | /** directory to put ouput split files */ | ||
53 | const char *split_dir; | ||
54 | |||
55 | /** the number of threads to run the import in */ | ||
56 | int thread_count; | ||
57 | |||
44 | /** db connection configuration */ | 58 | /** db connection configuration */ |
45 | const char *dbdriver; | 59 | const char *dbdriver; |
46 | const char *dbparams; | 60 | const char *dbparams; |
@@ -77,7 +91,7 @@ struct config_t { | |||
77 | 91 | ||
78 | typedef struct config_filestat_t config_filestat_t; | 92 | typedef struct config_filestat_t config_filestat_t; |
79 | struct config_filestat_t { | 93 | struct config_filestat_t { |
80 | char *fname; | 94 | const char *fname; |
81 | apr_size_t linesparsed; | 95 | apr_size_t linesparsed; |
82 | apr_size_t lineskipped; | 96 | apr_size_t lineskipped; |
83 | apr_size_t linesbad; | 97 | apr_size_t linesbad; |