[PEAR-BUG] Bug #18464 [Asn]: Download progress meter incorrect

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18464&edit=1

 ID:               18464
 Updated by:       [email protected]
 Reported By:      jan at horde dot org
 Summary:          Download progress meter incorrect
 Status:           Assigned
 Type:             Bug
 Package:          PEAR
 Package Version:  1.9.2
 PHP Version:      Irrelevant
 Assigned To:      dufuz
 Roadmap Versions: 
 New Comment:

Everything I tried so far gives me inconsistent results no matter what.
I am parking 
this issue for now


Previous Comments:
------------------------------------------------------------------------

[2011-07-05 21:05:17] dufuz

-Assigned To:
+Assigned To: dufuz
I had a quick look at this and it seems we are tracking the bytes being
downloaded, 
starting at 0 and always running (bytes % 10240) to determine if we
should add 
another dot (See PEAR_Downloader::_downloadCallback)

Your results make little sense but see a potential problem in the code
that I will look 
at soon enough unless you beat me to it.

------------------------------------------------------------------------

[2011-04-20 14:19:35] yunosh

Description:
------------
Compare the download sizes with the number of dots:

downloading horde-4.0.0.tgz ...
Starting to download horde-4.0.0.tgz (3,472,507 bytes)
...........done: 3,472,507 bytes
downloading imp-5.0.0.tgz ...
Starting to download imp-5.0.0.tgz (4,989,191 bytes)
....done: 4,989,191 bytes
downloading ingo-2.0.0.tgz ...
Starting to download ingo-2.0.0.tgz (1,882,221 bytes)
...done: 1,882,221 bytes
downloading kronolith-3.0.0.tgz ...
Starting to download kronolith-3.0.0.tgz (2,655,302 bytes)
....done: 2,655,302 bytes
downloading mnemo-3.0.0.tgz ...
Starting to download mnemo-3.0.0.tgz (1,506,756 bytes)
.....done: 1,506,756 bytes
downloading nag-3.0.0.tgz ...
Starting to download nag-3.0.0.tgz (1,894,590 bytes)
...done: 1,894,590 bytes
downloading turba-3.0.0.tgz ...
Starting to download turba-3.0.0.tgz (2,269,482 bytes)
....done: 2,269,482 bytes
downloading Horde_Alarm-1.0.0.tgz ...
Starting to download Horde_Alarm-1.0.0.tgz (22,727 bytes)
...done: 22,727 bytes

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18464&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.