diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-23 11:46:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-23 11:46:31 +0000 |
commit | 0aa720fa262bdf76ba4fe7f13e4be54a8a96e4c3 (patch) | |
tree | eeb305fff51d5cc663bcf1455ada645e4221eca9 /lib | |
parent | d44f3f84f8c8eb5951d47aeb2ea8caf120a5ec29 (diff) |
it actually fits to make a NNNd NNh display so this can be used up to
999 days
Diffstat (limited to 'lib')
-rw-r--r-- | lib/progress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/progress.c b/lib/progress.c index 947e46641..8de80ec74 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -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); } |