def rescale(self, now, next_time):
        if self.next_scale_time.compare_and_swap(next_time, now + self.rescale_threshold):
            with self.lock:
                rescaleFactor = math.exp(-self.alpha * (self.start_time - now))
                self.values = [(k * rescaleFactor, v) for k, v in self.values]
                self.start_time = now
dataset/ETHPy150Open cyberdelia/metrology/metrology/stats/sample.py/ExponentiallyDecayingSample.rescale/swapped operands of `-`