@staticmethod
def speed_to_str(speed):
    """
        Convert speed to formated string with the appropriate units.
        """
    if speed < 1000:
        return '{:>4}K/s'.format(round(speed))
    else:
        return '{:4.1f}M/s'.format(round(speed / 1000))
