X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=4d40f3d08e31fb2fe5c1553586a4b8033fd5cd00;hp=13212639cc8ec669df4ea3d47f6c0d4d9a3fd834;hb=410b96080ceec15ced70e684115f604380c5b4f6;hpb=5a69aa14748162429c43ad5ff3d8b35779fff0d4 diff --git a/notmuch-new.c b/notmuch-new.c index 13212639..4d40f3d0 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -850,7 +850,7 @@ _remove_directory (void *ctx, const char *path, add_files_state_t *add_files_state) { - notmuch_status_t status = NOTMUCH_STATUS_SUCCESS; + notmuch_status_t status; notmuch_directory_t *directory; notmuch_filenames_t *files, *subdirs; char *absolute; @@ -905,10 +905,9 @@ print_results (const add_files_state_t *state) state->processed_files == 1 ? "file" : "total files"); notmuch_time_print_formatted_seconds (elapsed); if (elapsed > 1) - printf (" (%d files/sec.).\033[K\n", + printf (" (%d files/sec.)", (int) (state->processed_files / elapsed)); - else - printf (".\033[K\n"); + printf (".%s\n", (state->output_is_a_tty) ? "\033[K" : ""); } if (state->added_messages)