def record_hits_with_total_weight(self, num_hits, total_weight):
        hash = self.prefix % '%s:totals'
        self.r.hincrby(hash, 'hits', num_hits)
        self.r.hincrby(hash, 'weight', total_weight)
dataset/ETHPy150Open simonw/django-redis-monitor/django_redis_monitor/redis_monitor.py/RedisMonitorTotalsOnly.record_hits_with_total_weight/swapped operands of `%`