mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-07 00:50:00 +01:00
Progress update percent was being zeroed in rzip.c thus displaying on every loop. Move it higher, fixing the amount of output to the terminal.
This commit is contained in:
parent
74d532e9d6
commit
6ceaeb5f93
2
rzip.c
2
rzip.c
|
|
@ -517,6 +517,7 @@ static void show_distrib(rzip_control *control, struct rzip_state *st)
|
|||
|
||||
static void hash_search(rzip_control *control, struct rzip_state *st, double pct_base, double pct_multiple)
|
||||
{
|
||||
int lastpct = 0, last_chunkpct = 0;
|
||||
i64 cksum_limit = 0, p, end;
|
||||
tag t = 0;
|
||||
struct {
|
||||
|
|
@ -560,7 +561,6 @@ static void hash_search(rzip_control *control, struct rzip_state *st, double pct
|
|||
t = full_tag(control, st, p);
|
||||
|
||||
while (p < end) {
|
||||
int lastpct = 0, last_chunkpct = 0;
|
||||
i64 reverse, mlen, offset = 0;
|
||||
|
||||
p++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue