def _advance(self, config, time_ms):
        self._current = config.samples % (self._current + 1)
        if self._current >= len(self._samples):
            sample = self.new_sample(time_ms)
            self._samples.append(sample)
            return sample
        else:
            sample = self.current(time_ms)
            sample.reset(time_ms)
            return sample
dataset/ETHPy150Open dpkp/kafka-python/kafka/metrics/stats/sampled_stat.py/AbstractSampledStat._advance/swapped operands of `%`