mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
it actually fits to make a NNNd NNh display so this can be used up to
999 days
This commit is contained in:
parent
d44f3f84f8
commit
0aa720fa26
@ -56,8 +56,8 @@ static void time2str(char *r, long t)
|
|||||||
else {
|
else {
|
||||||
/* this equals to more than 99 hours, switch to a more suitable output
|
/* this equals to more than 99 hours, switch to a more suitable output
|
||||||
format to fit within the limits. */
|
format to fit within the limits. */
|
||||||
if(h/24 <= 99)
|
if(h/24 <= 999)
|
||||||
sprintf(r, " %2dd %02dh", h/24, h-(h/24)*24);
|
sprintf(r, "%3dd %02dh", h/24, h-(h/24)*24);
|
||||||
else
|
else
|
||||||
sprintf(r, "%7dd", h/24);
|
sprintf(r, "%7dd", h/24);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user