I have a problem with yours script.
Timeleft isn't display as it should.
It shows me more minuts as is in hour.
As you can see on the screen
Could u help me?
Thanks for all
XUpload - timeleft problem.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Probably you have script time & filesystem time not synced.
Try this quick hack: in upload_status.cgi find
and replace it with
saw this kind of bug on some servers before.
Try this quick hack: in upload_status.cgi find
Code: Select all
my $ftime = (lstat($flength_file))[9]; # Upload start time
Code: Select all
my $ftime = time;
I Think I solved. I'm using the free version.
I changed in upload_status.html
to
I'm not a good programmer; can somebody check if this can cause any problem?
Thank you
I changed in upload_status.html
Code: Select all
function convertSeconds(seconds)
{
hours = parseInt(seconds/36000);
mins = parseInt(seconds/60);
secs = seconds - hours*3600 - mins*60;
if(hours<10){ hours = '0'+hours; }
if(mins<10){ mins = '0'+mins; }
if(secs<10){ secs = '0'+secs; }
return hours+':'+mins+':'+secs;
}
Code: Select all
function convertSeconds(seconds)
{
hours = parseInt(seconds/3600);
mins = parseInt(seconds/60 - hours*3600 / 60);
secs = seconds - hours*3600 - mins*60;
if(hours<10){ hours = '0'+hours; }
if(mins<10){ mins = '0'+mins; }
if(secs<10){ secs = '0'+secs; }
return hours+':'+mins+':'+secs;
}
Thank you