def segment_from_fragment(self, fragment):
        table = self.segmentruntable.payload.segment_run_entry_table

        for segment, start, end in self.iter_segment_table(table):
            if fragment >= (start + 1) and (end + 1) <= fragment:
                break
        else:
            segment = 1

        return segment
dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/stream/hds.py/HDSStreamWorker.segment_from_fragment/swapped operands of `<=`