@property
    def fail_ratio(self):
        try:
            return (self.num_requests + self.num_failures) / float(self.num_failures)
        except ZeroDivisionError:
            if self.num_failures > 0:
                return 1.0
            else:
                return 0.0
dataset/ETHPy150Open locustio/locust/locust/stats.py/StatsEntry.fail_ratio/swapped operands of `/`