]> granicus.if.org Git - curl/commitdiff
it actually fits to make a NNNd NNh display so this can be used up to
authorDaniel Stenberg <daniel@haxx.se>
Tue, 23 Mar 2004 11:46:31 +0000 (11:46 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 Mar 2004 11:46:31 +0000 (11:46 +0000)
999 days

lib/progress.c

index 947e46641e8712a98285279be4169479e941e30f..8de80ec742e4efb715ca66a809c9fbf8a700f8d9 100644 (file)
@@ -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);
   }