Skip to content
Snippets Groups Projects
Commit 0aa720fa authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

it actually fits to make a NNNd NNh display so this can be used up to

999 days
parent d44f3f84
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,8 @@ static void time2str(char *r, long t)
else {
/* this equals to more than 99 hours, switch to a more suitable output
format to fit within the limits. */
if(h/24 <= 99)
sprintf(r, " %2dd %02dh", h/24, h-(h/24)*24);
if(h/24 <= 999)
sprintf(r, "%3dd %02dh", h/24, h-(h/24)*24);
else
sprintf(r, "%7dd", h/24);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment