mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
SCP: Pretty up seconds conversion when days are involved
This commit is contained in:
parent
b83dae2db2
commit
5e201a4407
2
scp.c
2
scp.c
@ -8781,7 +8781,7 @@ if ((msecs > 0.0) || (usecs > 0.0)) {
|
||||
frac[0] = '\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
|
||||
if (hours > 0)
|
||||
sprintf (buf, "%s%.0f:%02.0f:%02.0f%s hour", sign, hours, mins, secs, frac);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user