Quote:
Originally Posted by Mu5icMan
I've changed when it regisiters the format from Kb to MB to 800000. And i've taken out the code for minutes cause there's something wrong with it. I've also added @ 64 Kbps at the end. If you don't want it for the timing of a 64Kb connection just change 64000 to whatever you want.
$attachment[time] = round(($attachment[filesize] * 8)/64000,2);
if ($attachment[filesize] > 800000) {
$attachment[filesize] = round(($attachment[filesize]/1024)/1024,2);
$attachment[filesize] = "$attachment[filesize] MB";
} else {
$attachment[filesize] = round($attachment[filesize]/1024,2);
$attachment[filesize] = "$attachment[filesize] kB";
}
{
$attachment[downtime] = "size: $attachment[filesize], download time: $attachment[time] secconds @ 64 Kbps";
}
|
so place this instead of the one in the first post?