]> git.ipfire.org Git - thirdparty/zstd.git/commit
[fileio] Separate parameter adaption from display update rate
authorNick Terrell <terrelln@fb.com>
Wed, 14 Dec 2022 23:17:05 +0000 (15:17 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Thu, 15 Dec 2022 01:08:21 +0000 (17:08 -0800)
commit15f32ad74ccf1f10efc93fdc4a180e7eba3e387e
tree2e69671d31c2399a46e986dda78968f823c88e78
parenta78c91ae59b9487fc32224b67c4a854dc3720367
[fileio] Separate parameter adaption from display update rate

Split the logic for parameter adaption from the logic to update the display rate.
This decouples the two updates, so changes to display updates don't affect
parameter adaption.

Also add a test case that checks that parameter adaption actually happens.

This fixes Issue #3353, where --adapt is broken when --no-progress is passed.
programs/fileio.c
programs/fileio_common.h
tests/cli-tests/compression/adapt.sh