mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Fix nan when no hashes found in verbose message.
This commit is contained in:
parent
103d2ce11e
commit
a1359276f4
2
rzip.c
2
rzip.c
|
|
@ -512,7 +512,7 @@ static void show_distrib(rzip_control *control, struct rzip_state *st)
|
||||||
print_err("WARNING: hash_count says total %lld\n", st->hash_count);
|
print_err("WARNING: hash_count says total %lld\n", st->hash_count);
|
||||||
|
|
||||||
print_output("%lld total hashes -- %lld in primary bucket (%-2.3f%%)\n", total, primary,
|
print_output("%lld total hashes -- %lld in primary bucket (%-2.3f%%)\n", total, primary,
|
||||||
primary*100.0/total);
|
primary * 100.0 / (total ? : 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hash_search(rzip_control *control, struct rzip_state *st, double pct_base, double pct_multiple)
|
static void hash_search(rzip_control *control, struct rzip_state *st, double pct_base, double pct_multiple)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue