If the download speed is constant (linear) then you can just use.

(10245458756 / 60000t)/1000 = kb/second
or
(10245458756 / 60000t)/60000 = kb/minute

The general form would be.
(size_of_file / download_speed * time) / convert_to_units

Where t (or time) is the amount of seconds that the download has been active.


On Sun, Nov 15, 2009 at 15:39, Chris Payne <chris_pa...@danmangames.com> wrote:
> Hi everyone,
>
> I'm not sure of the correct formula for this, if I have a file - just
> for example, that is 10245458756 bytes long and the download speed is
> 60KB a second, what formula would I use to calculate how many
> seconds/minutes/hours it would take to download the file?
>
> Maths really isn't my strong point and formulas go over my head
> otherwise I wouldn't ask :-(
>
> Thanks everyone
>
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
- Adam Shannon ( http://ashannon.us )

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to