diff --git a/src/VlcTop.cpp b/src/VlcTop.cpp index 708aa68ca..5c0876f16 100644 --- a/src/VlcTop.cpp +++ b/src/VlcTop.cpp @@ -366,7 +366,8 @@ void VlcTop::printTypeSummary() { printed.insert(type); const uint64_t hit = it->second.first; const uint64_t total = it->second.second; - const double pct = total ? (100.0 * static_cast(hit) / static_cast(total)) : 0.0; + const double pct + = total ? (100.0 * static_cast(hit) / static_cast(total)) : 0.0; std::cout << " " << std::left << std::setw(typeWidth) << type << " : " << std::right << std::fixed << std::setprecision(1) << pct << "% (" << std::setw(countWidth) << hit << "/" << std::setw(countWidth) << total << ")\n"; @@ -375,7 +376,8 @@ void VlcTop::printTypeSummary() { if (printed.count(it.first)) continue; const uint64_t hit = it.second.first; const uint64_t total = it.second.second; - const double pct = total ? (100.0 * static_cast(hit) / static_cast(total)) : 0.0; + const double pct + = total ? (100.0 * static_cast(hit) / static_cast(total)) : 0.0; std::cout << " " << std::left << std::setw(typeWidth) << it.first << " : " << std::right << std::fixed << std::setprecision(1) << pct << "% (" << std::setw(countWidth) << hit << "/" << std::setw(countWidth) << total << ")\n"; diff --git a/test_regress/t/t_vlcov_summary_typed.py b/test_regress/t/t_vlcov_summary_typed.py old mode 100644 new mode 100755