diff --git a/tools/analyse.cpp b/tools/analyse.cpp index 75d9133..fc4f314 100644 --- a/tools/analyse.cpp +++ b/tools/analyse.cpp @@ -161,7 +161,7 @@ int main (int argc, char const **argv) ); auto const duplicated_bytes = total_bytes - unique_bytes; - float const duplicated_fraction = float (duplicated_bytes) / total_bytes; + float const duplicated_fraction = 100.f * duplicated_bytes / total_bytes; std::cout << duplicated_bytes << " duplicated bytes of " << total_bytes << " (" << duplicated_fraction << "%)\n"; std::cout << (src.elements.size () - unique.size ()) << " duplicates\n";