1 diff -ur wget-1.9.1/src/progress.c wget-1.9.1-porn/src/progress.c
2 --- wget-1.9.1/src/progress.c 2003-09-23 20:48:10.000000000 +0000
3 +++ wget-1.9.1-porn/src/progress.c 2004-02-13 12:11:13.000000000 +0000
7 "xx% " or "100%" - percentage - 4 chars
8 - "[]" - progress bar decorations - 2 chars
9 + "8(_o_)" - progress bar decorations - 6 chars
10 " nnn,nnn,nnn" - downloaded bytes - 12 chars or very rarely more
11 " 1012.56K/s" - dl rate - 11 chars
12 " ETA xx:xx:xx" - ETA - 13 chars
14 - "=====>..." - progress bar - the rest
15 + "=====D..." - progress bar - the rest
17 int dlbytes_size = 1 + MAX (size_legible_len, 11);
18 - int progress_size = bp->width - (4 + 2 + dlbytes_size + 11 + 13);
19 + int progress_size = bp->width - (4 + 6 + dlbytes_size + 11 + 13);
21 + int percentage = (int)(100.0 * size / bp->total_length);
23 + assert (percentage <= 100);
25 if (progress_size < 5)
29 if (bp->total_length > 0)
31 - int percentage = (int)(100.0 * size / bp->total_length);
33 - assert (percentage <= 100);
36 sprintf (p, "%2d%% ", percentage);
38 assert (dlsz <= progress_size);
39 assert (insz <= dlsz);
45 /* Print the initial portion of the download with '+' chars, the
48 for (i = 0; i < dlsz - 1; i++)
54 while (p - begin < progress_size)
59 + if (percentage < 25)
61 + else if (percentage < 50)
63 + else if (percentage < 75)
70 else if (progress_size)