def on_request_success(request_type, name, response_time, response_length):
    if global_stats.max_requests is not None and global_stats.max_requests >= (global_stats.num_requests + global_stats.num_failures):
        raise StopLocust("Maximum number of requests reached")
    global_stats.get(name, request_type).log(response_time, response_length)
dataset/ETHPy150Open locustio/locust/locust/stats.py/on_request_success/swapped operands of `>=`