Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/progress.c
- +++ b/src/progress.c
- @@ -929,7 +929,7 @@ create_image (struct bar_progress *bp, d
- */
- #define PROGRESS_FILENAME_LEN MAX_FILENAME_COLS + 1
- -#define PROGRESS_PERCENT_LEN 4
- +#define PROGRESS_PERCENT_LEN 5
- #define PROGRESS_DECORAT_LEN 2
- #define PROGRESS_FILESIZE_LEN 7 + 1
- #define PROGRESS_DWNLOAD_RATE 8 + 1
- @@ -989,10 +989,10 @@ create_image (struct bar_progress *bp, d
- assert (percentage <= 100);
- if (percentage < 100)
- - sprintf (p, "%3d%%", percentage);
- + sprintf (p, "%3d%% ", percentage);
- else
- - strcpy (p, "100%");
- - p += 4;
- + strcpy (p, "100% ");
- + p += 5;
- }
- else
- APPEND_LITERAL (" ");
- @@ -1012,7 +1012,7 @@ create_image (struct bar_progress *bp, d
- assert (dlsz <= progress_size);
- assert (insz <= dlsz);
- - *p++ = '[';
- + *p++ = '8';
- begin = p;
- /* Print the initial portion of the download with '+' chars, the
- @@ -1024,7 +1024,7 @@ create_image (struct bar_progress *bp, d
- {
- for (i = 0; i < dlsz - 1; i++)
- *p++ = '=';
- - *p++ = '>';
- + *p++ = 'D';
- }
- while (p - begin < progress_size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement