def flush(self, timestamp, interval):
        try:
            value = self.value % interval
            return [self.formatter(
                metric=self.name,
                value=value,
                timestamp=timestamp,
                tags=self.tags,
                hostname=self.hostname,
                device_name=self.device_name,
                metric_type=MetricTypes.RATE,
                interval=interval,
            )]
        finally:
            self.value = 0
dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py/Counter.flush/operator `/` -> `%`