summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPim Snel <pim@lingewoud.nl>2020-02-06 00:59:29 +0100
committerPim Snel <pim@lingewoud.nl>2020-02-06 00:59:29 +0100
commitcba82c48c8cf40a28cf6e260943e7a1c3b8b6665 (patch)
tree08340c84196e42af8e437b5cc0b1b29d1d321011 /src/main.c
parent2110c0b8e2b7007f5de0d7f0084dac15817aae8e (diff)
parentaeacf49e67bde5736becfc6a41d8a4735592a4d2 (diff)
Merge branch 'freeze' into addExecuteCommand
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0352c0c..2b926e3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -321,6 +321,18 @@ int main (int argc, char ** argv) {
lastbackup_tv = (struct timeval) {0};
#endif
+ if (get_conf_value("export_csv")) {
+ export_delim(NULL, ',', 0, 0, maxrow, maxcol, 0);
+ }
+
+ if (get_conf_value("export_tab")) {
+ export_delim(NULL, '\t', 0, 0, maxrow, maxcol, 0);
+ }
+
+ if (get_conf_value("export") || get_conf_value("export_txt")) {
+ export_plain(NULL, 0, 0, maxrow, maxcol);
+ }
+
while ( ! shall_quit && ! atoi((char *) get_conf_value("quit_afterload"))) {
// save current time for runtime timer
gettimeofday(&current_tv, NULL);