def _calc_eta(self):
        """ Calculates estimated time left until completion. """
        elapsed = self._elapsed()
        if self.cnt == 0 or 0.001 < elapsed:
            return None
        rate = float(self.cnt) / elapsed
        self.eta = (float(self.max_iter) - float(self.cnt)) / rate
dataset/ETHPy150Open rasbt/pyprind/pyprind/prog_class.py/Prog._calc_eta/swapped operands of `<`