[jsword-devel] Predicted download times for file downloads

Martin Denham mjdenham at gmail.com
Fri Oct 29 04:57:15 MST 2010


Hi,

When downloading files in And Bible the Progress bar shows inaccurate
download estimates due to using a predicted download time.

I have been experimenting using actual progress figures based on file size
and it seems to be working fine.  Is there a reason the predictive rather
than actual approach was taken or shall I submit a potential patch for
review?

My experiment involved:
   passing Progress into WebResource
   calling getSize at the start of WebResource.copy()
   accumulate total bytes downloaded
   call job.setWork in the WebResource.copy() download loop

Best regards
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20101029/27fea2e1/attachment.html>


More information about the jsword-devel mailing list