Advertisement
teknoraver

penis wget

Jun 18th, 2015
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.22 KB | None | 0 0
  1. --- a/src/progress.c
  2. +++ b/src/progress.c
  3. @@ -929,7 +929,7 @@ create_image (struct bar_progress *bp, d
  4.    */
  5.  
  6.  #define PROGRESS_FILENAME_LEN  MAX_FILENAME_COLS + 1
  7. -#define PROGRESS_PERCENT_LEN   4
  8. +#define PROGRESS_PERCENT_LEN   5
  9.  #define PROGRESS_DECORAT_LEN   2
  10.  #define PROGRESS_FILESIZE_LEN  7 + 1
  11.  #define PROGRESS_DWNLOAD_RATE  8 + 1
  12. @@ -989,10 +989,10 @@ create_image (struct bar_progress *bp, d
  13.        assert (percentage <= 100);
  14.  
  15.        if (percentage < 100)
  16. -        sprintf (p, "%3d%%", percentage);
  17. +        sprintf (p, "%3d%% ", percentage);
  18.        else
  19. -        strcpy (p, "100%");
  20. -      p += 4;
  21. +        strcpy (p, "100% ");
  22. +      p += 5;
  23.      }
  24.    else
  25.      APPEND_LITERAL ("    ");
  26. @@ -1012,7 +1012,7 @@ create_image (struct bar_progress *bp, d
  27.        assert (dlsz <= progress_size);
  28.        assert (insz <= dlsz);
  29.  
  30. -      *p++ = '[';
  31. +      *p++ = '8';
  32.        begin = p;
  33.  
  34.        /* Print the initial portion of the download with '+' chars, the
  35. @@ -1024,7 +1024,7 @@ create_image (struct bar_progress *bp, d
  36.          {
  37.            for (i = 0; i < dlsz - 1; i++)
  38.              *p++ = '=';
  39. -          *p++ = '>';
  40. +          *p++ = 'D';
  41.          }
  42.  
  43.        while (p - begin < progress_size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement