hi!
Once before I made a patch and new implementation for
print_percentage() function (located in retr.c). The goal
was to report estimated finish time and current download
speed right after the percents (at the end of every dot
line).
I've contacted Hrvoje Niksic and understood that very similar
patch has been applied which reports current rate on every
dot line. So I've been advised to post message here to get
different opinions...
Here we are:
Patch is located at:
http://www.biscom.net/~cade/away/wget-new-percentage/wget-new-percentage-3.0.tgz
It contains wget-new-percentage.c which is actual print_percentage()
reimplementation and it is a bit more than a screenpage length
(and quite simple actually). It also gets one more argument `flags'
i.e. `flags' that is passed to show_progress().
Sample output can be viewed at:
http://www.biscom.net/~cade/away/wget-new-percentage/sample-output-log.txt
I still think my implementation has few good points as it does not
interfere the rest of the code almost at all, it does not change
dot points design and finally packs all required information on
fixed space (for example current speed always takes 5 chars and still
reports speed accurately by moving decimal point and changing
modifier)
I'll be happy to get feedback from wget mailing list subscribers,
Thank you!
P! Vladi.
--
Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Personal home page at http://www.biscom.net/~cade
DataMax Ltd. http://www.datamax.bg
No tears to cry, no feelings left...