diff options
Diffstat (limited to 'src/xz/coder.c')
-rw-r--r-- | src/xz/coder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c index 54864506..897ff6a9 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -766,6 +766,11 @@ coder_run(const char *filename) // Don't open the destination file when --test // is used. if (opt_mode == MODE_TEST || !io_open_dest(pair)) { + // Remember the current time. It is needed + // for progress indicator and for timed + // flushing. + mytime_set_start_time(); + // Initialize the progress indicator. const uint64_t in_size = pair->src_st.st_size <= 0 |