Fix the time format in `duration_to_string`

master
MoNTE48 2021-12-18 00:31:56 +01:00
parent ff04baa9b3
commit d07f0a660d
1 changed files with 3 additions and 3 deletions

View File

@ -670,15 +670,15 @@ inline const std::string duration_to_string(int sec)
std::stringstream ss;
if (hour > 0) {
ss << hour << "h ";
ss << hour << " h";
}
if (min > 0) {
ss << min << "m ";
ss << min << " m";
}
if (sec > 0) {
ss << sec << "s ";
ss << sec << " s";
}
return ss.str();