XFileSharing Free - Estimate not working?

Free version of Xfilesharing

Moderator: admin

Message
Author
aj_tsm
Posts: 3
Joined: Dec 08, 2007 3:55 am

Estimate not working?

#1 Postby aj_tsm » Dec 08, 2007 4:01 am

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

Kuwait
Posts: 15
Joined: Jan 16, 2008 3:15 pm
Location: kuwait
Contact:

#2 Postby Kuwait » Jan 17, 2008 4:45 am

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..

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#3 Postby PilgrimX182 » Jan 17, 2008 7:39 am

Yep. My bad. Forgot to fix in XFS1.1

Here goes quick fix:

in upload_status.cgi find

Code: Select all

my ($total,$current,$time,$speed,$files) = split(/:/,$str);

and add this line below it:

Code: Select all

my $estimate = sprintf("%.0f", ($total-$current)/$speed ) if $speed;


then find

Code: Select all

print qq{SP('$currentKB','$time','$speedKB','$files',0);PB($speedKB);} unless $uploaded;

and replace it with

Code: Select all

print  qq{SP('$currentKB','$time','$speedKB','$files','$estimate');PB($speedKB);} unless $uploaded;

Kuwait
Posts: 15
Joined: Jan 16, 2008 3:15 pm
Location: kuwait
Contact:

#4 Postby Kuwait » Jan 17, 2008 7:41 am

thank you 8)

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#5 Postby PilgrimX182 » Jan 17, 2008 8:01 am

About freezing - check that there were no JS errors. Will experiment more with AJAX updates today.


Return to “XFileSharing Free”

Who is online

Users browsing this forum: No registered users and 0 guests