1
0

Fix the time format in duration_to_string

This commit is contained in:
MoNTE48 2021-12-18 00:31:56 +01:00
parent ff04baa9b3
commit d07f0a660d

View File

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