Created
May 7, 2014 09:35
-
-
Save salzig/39cd167f183e132bd180 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_size = 12 | |
input_bandwith = 100 | |
print "upload ",input_size," TB with ",input_bandwith,"mbit/s \n\n" | |
scale=1 | |
kilo = 1024 | |
mega = 1024 * kilo | |
giga = 1024 * mega | |
tera = 1024 * giga | |
minute = 60 | |
hour = 60 * minute | |
day = 24 * hour | |
week = 7 * day | |
size = input_size * tera | |
print size, " bytes \n" | |
bandwidth = input_bandwith * mega | |
print bandwidth, " bytes/sec \n" | |
print "\n\n upload will take: \n" | |
seconds = size / bandwidth | |
print seconds, " sec or\n" | |
print seconds / minute, " minutes or \n" | |
print seconds / hour, " hours or \n" | |
print seconds / day, " days \n" | |
quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment