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
XFileSharing Free - Estimate not working?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Yep. My bad. Forgot to fix in XFS1.1
Here goes quick fix:
in upload_status.cgi find
and add this line below it:
then find
and replace it with
Here goes quick fix:
in upload_status.cgi find
Code: Select all
my ($total,$current,$time,$speed,$files) = split(/:/,$str);
Code: Select all
my $estimate = sprintf("%.0f", ($total-$current)/$speed ) if $speed;
Code: Select all
print qq{SP('$currentKB','$time','$speedKB','$files',0);PB($speedKB);} unless $uploaded;
Code: Select all
print qq{SP('$currentKB','$time','$speedKB','$files','$estimate');PB($speedKB);} unless $uploaded;
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm