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
Code: Select all
my $ftime = (lstat($flength_file))[9]; # Upload start time
Code: Select all
my $ftime = time;
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;
}