Update speedtest.py
This commit is contained in:
parent
adf5b7fa63
commit
3520d59062
|
|
@ -39,7 +39,7 @@ def speed_convert(size):
|
||||||
"""Hi human, you can't read bytes?"""
|
"""Hi human, you can't read bytes?"""
|
||||||
power = 2 ** 10
|
power = 2 ** 10
|
||||||
zero = 0
|
zero = 0
|
||||||
units = {0: "", 1: "Kb/s", 2: "Mb/s", 3: "Gb/s", 4: "Tb/s"}
|
units = {0: "", 1: "Kb/s", 2: "MB/s", 3: "Gb/s", 4: "Tb/s"}
|
||||||
while size > power:
|
while size > power:
|
||||||
size /= power
|
size /= power
|
||||||
zero += 1
|
zero += 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue