'Returns the current up or download speed.
@return The speed in bytes/s.'

def get_current_speed(self, direct):

    if (self.stats is None):
        return 0
    if (direct == UPLOAD):
        return self.stats['up']
    else:
        return self.stats['down']
