def stats(self, period, zero):
        if self.values or zero:
            d = {}
            d['count'] = len(self.values)
            d['rate'] = period / d['count']
            d['mean'] = mean(self.values)
            self.values.sort()
            d['min'] = percentile(self.values, 0.0)
            d['median'] = percentile(self.values, 0.5)
            d['upper95'] = percentile(self.values, 0.95)
            d['upper99'] = percentile(self.values, 0.99)
            d['max'] = percentile(self.values, 1.0)
            d['stddev'] = stddev(self.values, d['mean'])
            return d
        return None
dataset/ETHPy150Open artirix/logcabin/logcabin/filters/stats.py/Timer.stats/swapped operands of `/`