| View previous topic :: View next topic |
| Author |
Message |
aj_tsm
Joined: 08 Dec 2007 Posts: 3
|
Posted: Dec 08, 2007 4:01 am Post subject: Estimate not working? |
|
|
Hello
When uploading a file in Firefox (also happens in IE, I believe) the estimate, next to the time elapsed, simply just sits there saying 0 seconds.
Would be nice if this worked... is there a quick fix for this, developer?
Regards,
AJ |
|
| Back to top |
|
 |
Kuwait
Joined: 16 Jan 2008 Posts: 15 Location: kuwait
|
Posted: Jan 17, 2008 4:45 am Post subject: |
|
|
| same here , and most of the time the whole upload progress just freeze's which i have to refresh the ie to start all over again.. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Jan 17, 2008 7:39 am Post subject: |
|
|
Yep. My bad. Forgot to fix in XFS1.1
Here goes quick fix:
in upload_status.cgi find
| Code: | | my ($total,$current,$time,$speed,$files) = split(/:/,$str); |
and add this line below it:
| Code: | | my $estimate = sprintf("%.0f", ($total-$current)/$speed ) if $speed; |
then find
| Code: | | print qq{SP('$currentKB','$time','$speedKB','$files',0);PB($speedKB);} unless $uploaded; |
and replace it with
| Code: | | print qq{SP('$currentKB','$time','$speedKB','$files','$estimate');PB($speedKB);} unless $uploaded; |
|
|
| Back to top |
|
 |
Kuwait
Joined: 16 Jan 2008 Posts: 15 Location: kuwait
|
Posted: Jan 17, 2008 7:41 am Post subject: |
|
|
thank you  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Jan 17, 2008 8:01 am Post subject: |
|
|
| About freezing - check that there were no JS errors. Will experiment more with AJAX updates today. |
|
| Back to top |
|
 |
|