php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57592 Time drifting and time_start being reset
Submitted: 2007-03-27 09:51 UTC Modified: 2007-07-17 05:15 UTC
From: chrisdunavant at vt dot edu Assigned:
Status: Closed Package: uploadprogress (PECL)
PHP Version: 5.2.1 OS: Gentoo Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chrisdunavant at vt dot edu
New email:
PHP Version: OS:

 

 [2007-03-27 09:51 UTC] chrisdunavant at vt dot edu
Description:
------------
This is not really a bug with the software but more of a server issue, but a change in the code may alleviate the problem with the server.

Installed uploadprogress on a Gentoo Linux server hosted on a virtual machine.  The server appears to be having some "time drift" issues where the current time is .01 microseconds less than the "last time" at random points.  This time drift is causing the uploadprogress to miscalculate the "est_sec" left for the download because it continually "resets" the "time_start" to the current time because it checks for fractures in time.  There appears to be a fix for this but I'm unsure if the "fix" may cause other problems.  The fix would mean changing line 147 of uploadprogress.c.

From:

progress->time_start = progress->time_last = crtime; 

To:

progress->time_last = crtime;

I hope this is helpful.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-17 05:15 UTC] chregu@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC