def pos(self):
        """Return how far through the operation has progressed."""
        if not self._tasks:
            return 0
        task = self._tasks[-1]
        if len(self._tasks) > 1:
            # scale up the overall pos by the current task or preserve it if
            # no current width is known.
            offset = task[2] * (task[1] or 1)
        else:
            offset = 0
        return offset * task[0]
dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/progress_model.py/ProgressModel.pos/operator `+` -> `*`