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