def run_forever(self, *a, **kw):
        while True:
            start_time = time.time()
            try:
                self.run_once()
            except Exception:
                self.logger.exception('Run once failed')
            end_time = time.time()
            # don't run more than once every self.frequency seconds
            sleep_time = (end_time - start_time) - self.frequency
            time.sleep(max(0, sleep_time))
dataset/ETHPy150Open notmyname/slogging/slogging/access_log_delivery.py/AccessLogDeliveryDaemon.run_forever/swapped operands of `-`