mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-17 16:31:27 -04:00
filesystem_v2: fix ratio percentage display
This commit is contained in:
parent
a2b0522d15
commit
8395aaa85d
@ -398,7 +398,7 @@ void filesystem_v2::identify(logger& lgr, std::shared_ptr<mmif> mm,
|
||||
|
||||
os << "SECTION " << s->header.to_string()
|
||||
<< ", blocksize=" << bd.uncompressed_size()
|
||||
<< ", ratio=" << fmt::format("{:.2f}%", compression_ratio) << std::endl;
|
||||
<< ", ratio=" << fmt::format("{:.2f}%", 100.0*compression_ratio) << std::endl;
|
||||
|
||||
if (s->header.type != section_type::BLOCK) {
|
||||
if (!sections.emplace(s->header.type, *s).second) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user