def real_get_text(self): if self.dinode: block_bits = self.fs.fs_clustersize >> self.super.s_blocksize_bits bytes = self.get_bits() * block_bits * self.fs.fs_blocksize return format_bytes(bytes, show_bytes=True) else: return EMPTY_TEXT
def __init__(self, minimum, maximum): BaseCombo.__init__(self) choices = [('Auto', False)] size = minimum while size <= maximum: choices.append((format_bytes(size), False)) size = size << 1 self.set_choices(choices)
def real_get_text(self): return format_bytes(getattr(self.fs, self.member))