I decided to download the gnu debugger with wget right now and
noticed that wget (1.7) displays incorrect values for the
filesize (total file length, 'to go' and percent done) when
executed with the -c parameter.

To download the file I used this command:

wget -c ftp://ftp.gnu.vbs.at/gdb/gdb-5.0.tar.gz

The first time it displayed correct values, but then I canceled
the download with ctrl-c for a moment, when I restarted it again
with the same command I've got this:

- kontiki:/devel/tmp# wget -c ftp://ftp.gnu.vbs.at/gdb/gdb-5.0.tar.gz
- --23:59:32--  ftp://ftp.gnu.vbs.at/gdb/gdb-5.0.tar.gz
-            => `gdb-5.0.tar.gz'
- Connecting to ftp.gnu.vbs.at:21... connected!
- Logging in as anonymous ... Logged in!
- ==> SYST ... done.    ==> PWD ... done.
- ==> TYPE I ... done.  ==> CWD /gdb ... done.
- ==> PORT ... done.    ==> REST 9056184 ... done.
- ==> RETR gdb-5.0.tar.gz ... done.
- Length: 3,243,134 [-5,813,050 to go] (unauthoritative)
-
-           [ skipping 8800K ]
-  8800K ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,.......279% 
@   2.86 KB/s
-  8850K .......... .......... .......... .......... ..........281% 
@   5.19 KB/s
-  8900K .......... .......... .......... .......... ..........282% 
@   6.79 KB/s
-  8950K .......... .......... .......... .......... ..........284% 
@   6.33 KB/s
-  9000K .......... ..........
- kontiki:/devel/tmp#

It says 'Length: 3,243,134' while it should be about 12MB, and 'to go'
-5,813,050 bytes can't be correct either. Same goes for the percent
done -> 280% while I'm only at about 75% in reality.

I haven't seen this mentioned in the TODO file so I thought I'd let you
know.

Max

Reply via email to