@property
    def avg(self):
        events = (sum(self.events) + self.cache_event)
        if not events:
            return 0
        return events / float(self.sum)
dataset/ETHPy150Open binux/pyspider/pyspider/libs/counter.py/TimebaseAverageEventCounter.avg/swapped operands of `/`