Fix the time format in duration_to_string
This commit is contained in:
parent
ff04baa9b3
commit
d07f0a660d
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user