SCP: Pretty up seconds conversion when days are involved
This commit is contained in:
parent
b83dae2db2
commit
5e201a4407
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -8781,7 +8781,7 @@ if ((msecs > 0.0) || (usecs > 0.0)) {
|
||||||
frac[0] = '\0';
|
frac[0] = '\0';
|
||||||
}
|
}
|
||||||
if (days > 0)
|
if (days > 0)
|
||||||
sprintf (buf, "%s%.0f %02.0f:%02.0f:%02.0f%s day", sign, days, hours, mins, secs, frac);
|
sprintf (buf, "%s%.0f day%s %02.0f:%02.0f:%02.0f%s hour%s", sign, days, (days != 1)? "s" : "", hours, mins, secs, frac, (days == 1) ? "s" : "");
|
||||||
else
|
else
|
||||||
if (hours > 0)
|
if (hours > 0)
|
||||||
sprintf (buf, "%s%.0f:%02.0f:%02.0f%s hour", sign, hours, mins, secs, frac);
|
sprintf (buf, "%s%.0f:%02.0f:%02.0f%s hour", sign, hours, mins, secs, frac);
|
||||||
|
|
Loading…
Add table
Reference in a new issue