This file contains 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
#Formatting of data sent in bytes to label in largest size | |
def format_data_type(i, type): | |
loop = 0 | |
current_num = i | |
last_num = 0 | |
if type == "net": | |
label = ["Bps", "KBps", "MBps", "GBps"] | |
if type == "size": | |
label = ["B", "KB", "MB", "GB", "TB"] | |
while(True): |