Skip to content

Instantly share code, notes, and snippets.

@salzig
Created May 7, 2014 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salzig/39cd167f183e132bd180 to your computer and use it in GitHub Desktop.
Save salzig/39cd167f183e132bd180 to your computer and use it in GitHub Desktop.
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