mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-03-06 13:03:55 +01:00
Calculate the total expected size progressively and show it when it's not known.
This commit is contained in:
parent
dc360b52dc
commit
5f7a03932b
4
lrzip.c
4
lrzip.c
|
|
@ -520,7 +520,9 @@ void decompress_file(rzip_control *control)
|
|||
print_progress("\r");
|
||||
if (!(STDOUT | TEST_ONLY))
|
||||
print_output("Output filename is: %s: ", control->outfile);
|
||||
print_progress("[OK] - %lld bytes \n", expected_size);
|
||||
if (!expected_size)
|
||||
expected_size = control->st_size;
|
||||
print_progress("[OK] - %lld bytes \n", expected_size);
|
||||
|
||||
if (unlikely(close(fd_hist) || close(fd_out)))
|
||||
fatal("Failed to close files\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue