some small refactoring
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user