Re: Missing K/s rate on download of 13MB file

2006-05-19 Thread Mauro Tortonesi

J. Grant wrote:

Hi,

On 14/05/06 21:26, Hrvoje Niksic wrote:


J. Grant [EMAIL PROTECTED] writes:


Could an extra value be added which lists the average rate? average
rate: xx.xx K/s ?


Unfortunately it would have problems fitting on the line.


Perhaps the progress bar would be reduced?


i don't think that would be a good idea.


or the default changed to be the average rate?


i don't think that would be a good idea either. but...

or if neither of those are suitable, could a conf file setting be added 
so we can switch between average rate, and current rate?


...this is an interesting proposal. however, my todo list is already 
*HUGE* and grows larger every day. so i really doubt i will have time to 
implement this feature (at least for the next months). you're very 
welcome to proceed w/ the development of configurable average 
calculation code and send me a patch, though.


--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi  http://www.tortonesi.com

University of Ferrara - Dept. of Eng.http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it


Re: Missing K/s rate on download of 13MB file

2006-05-14 Thread J. Grant


On 14/05/06 00:13, Steven M. Schweda wrote:

From: Hrvoje Niksic


The --.-- current download rate means that the download is currently
not progressing.  [...]


   Looking at the code in src/progress.c (version 1.10.2), it would
appear that --.--K/s is emitted when either the time
(hist-total_time) or the byte count (hist-total_bytes) is zero, rather
than just when the time is zero.  This precludes emitting a 0.0 rate,
which would be more informative, in my opinion, than --.--K/s.


I agree, in my view the actual rate should be displayed even when 0.0 
K/s, the --.--K/s presently is open to interpretation.  What do 
people think of updating to display like that as Steven suggests?


Please include my email address in any replies.

Kind regards
JG
--
Homepage: http://jguk.org/
Blog: http://jguk.org/blog.rss
Radio: http://jguk.org/#radio


Re: Missing K/s rate on download of 13MB file

2006-05-14 Thread J. Grant

Hi!

On 13/05/06 23:48, Hrvoje Niksic wrote:

J. Grant [EMAIL PROTECTED] writes:


The --.-- current download rate means that the download is
currently
not progressing.  The ETA calculation is based on the average download
rate, and is always available.


is the K/s rate not the average rate ?


No, it's the current rate.


Could an extra value be added which lists the average rate? average 
rate: xx.xx K/s ?


Please include my email address in any replies.

Kind regards
JG
--
Homepage: http://jguk.org/
Blog: http://jguk.org/blog.rss
Radio: http://jguk.org/#radio


Re: Missing K/s rate on download of 13MB file

2006-05-14 Thread Hrvoje Niksic
J. Grant [EMAIL PROTECTED] writes:

 Could an extra value be added which lists the average rate? average
 rate: xx.xx K/s ?

Unfortunately it would have problems fitting on the line.


Re: Missing K/s rate on download of 13MB file

2006-05-14 Thread J. Grant

Hi,

On 14/05/06 21:26, Hrvoje Niksic wrote:

J. Grant [EMAIL PROTECTED] writes:


Could an extra value be added which lists the average rate? average
rate: xx.xx K/s ?


Unfortunately it would have problems fitting on the line.


Perhaps the progress bar would be reduced?

or the default changed to be the average rate?

or if neither of those are suitable, could a conf file setting be added 
so we can switch between average rate, and current rate?


Please include my email address in any replies.

Kind regards
JG


Missing K/s rate on download of 13MB file

2006-05-13 Thread J. Grant

Hello,

I think I may have found a bug, the ETA is listed, but not the K/s 
rate, the ETA must have been calculated using an K/s rate determined by 
the current time into the download.


Kind regards
JG


$ wget 
http://www.moviemaze.de/media/trailer/delivery/5158673171ca2df66c9b1fd80ea75f4d6bbc731ce5/inside_man_h480.mov
--13:00:41-- 
http://www.moviemaze.de/media/trailer/delivery/5158673171ca2df66c9b1fd80ea75f4d6bbc731ce5/inside_man_h480.mov

   = `inside_man_h480.mov'
Resolving www.moviemaze.de... 85.214.46.168
Connecting to www.moviemaze.de|85.214.46.168|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: 
http://movies.apple.com/movies/universal/inside_man/inside_man_h480.mov 
[following]
--13:00:49-- 
http://movies.apple.com/movies/universal/inside_man/inside_man_h480.mov

   = `inside_man_h480.mov'
Resolving movies.apple.com... 193.38.108.216, 193.38.108.206
Connecting to movies.apple.com|193.38.108.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,230,357 (13M) [video/quicktime]

 9% [== ] 1,305,517 
--.--K/s  ETA 1:11:52


--
Homepage: http://jguk.org/
Blog: http://jguk.org/blog.rss
Radio: http://jguk.org/#radio


Re: Missing K/s rate on download of 13MB file

2006-05-13 Thread Hrvoje Niksic
J. Grant [EMAIL PROTECTED] writes:

 I think I may have found a bug, the ETA is listed, but not the
 K/s rate, the ETA must have been calculated using an K/s rate
 determined by the current time into the download.

The --.-- current download rate means that the download is currently
not progressing.  The ETA calculation is based on the average download
rate, and is always available.


Re: Missing K/s rate on download of 13MB file

2006-05-13 Thread J. Grant

Hello Hrvoje Niksic,

Thank you for your reply.

On 13/05/06 19:41, Hrvoje Niksic wrote:

J. Grant [EMAIL PROTECTED] writes:


I think I may have found a bug, the ETA is listed, but not the
K/s rate, the ETA must have been calculated using an K/s rate
determined by the current time into the download.


The --.-- current download rate means that the download is currently
not progressing.  The ETA calculation is based on the average download
rate, and is always available.


is the K/s rate not the average rate ? That is what would be expected, 
but perhaps it is the actual current rate instead?


I think any stalled-ness should be indicated by (stalled) text, rather 
than modifying the average K/s rate. Would you agree? I think it would 
be very handy to have the average K/s rate always displayed.


Please include my email address in any replies.

Kind regards
JG


Re: Missing K/s rate on download of 13MB file

2006-05-13 Thread Hrvoje Niksic
J. Grant [EMAIL PROTECTED] writes:

 The --.-- current download rate means that the download is
 currently
 not progressing.  The ETA calculation is based on the average download
 rate, and is always available.

 is the K/s rate not the average rate ?

No, it's the current rate.


Re: Missing K/s rate on download of 13MB file

2006-05-13 Thread Steven M. Schweda
From: Hrvoje Niksic

 The --.-- current download rate means that the download is currently
 not progressing.  [...]

   Looking at the code in src/progress.c (version 1.10.2), it would
appear that --.--K/s is emitted when either the time
(hist-total_time) or the byte count (hist-total_bytes) is zero, rather
than just when the time is zero.  This precludes emitting a 0.0 rate,
which would be more informative, in my opinion, than --.--K/s.

   0/10 is quite well defined, even though 10/0 is not.  When I see a
rate like --.--K/s, I assume that there's not enough info to provide
a real number (such as no bytes transferred), not that the value is
zero.



   Steven M. Schweda   [EMAIL PROTECTED]
   382 South Warwick Street(+1) 651-699-9818
   Saint Paul  MN  55105-2547