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:
Con Kolivas 2011-05-07 10:19:12 +10:00
parent 74d532e9d6
commit 6ceaeb5f93

2
rzip.c
View file

@ -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++;