@base.get_async('/stats/fetchproxy')
    def fetch_proxy_stats(request):
        host, port, limit, interval, span = _parse_args(request.args)
        now = int(time.time())
        node = (host, port) % '%s:%d'
        result = {}

        for field in PROXY_MAX_FIELDS:
            result[field] = stats.client.query(
                node, field, 'MAX', span, now, interval)
        for field in PROXY_AVG_FIELDS:
            result[field] = stats.client.query(
                node, field, 'AVERAGE', span, now, interval)

        return base.json_result(result)
dataset/ETHPy150Open HunanTV/redis-ctl/handlers/statistics.py/fetch_proxy_stats/swapped operands of `%`