some small refactoring

This commit is contained in:
2021-12-19 13:34:29 +01:00
parent 5c925f2608
commit 8ea91f255b
5 changed files with 49 additions and 52 deletions

View File

@@ -101,10 +101,10 @@ void MlPerfMon::print_results() const {
int i {0};
for(auto &p : v) {
if (p.first.size() >= method_name_print_len)
p.first.erase(method_name_print_len, std::string::npos);
else
p.first.insert(p.first.end(), method_name_print_len - p.first.size(), ' ');
if (p.first.size() >= method_name_print_len)
p.first.erase(method_name_print_len, std::string::npos);
else
p.first.insert(p.first.end(), method_name_print_len - p.first.size(), ' ');
std::cerr << p.first << " " << p.second << std::endl;