|
|
|
@ -1936,6 +1936,8 @@ class MemBox(Box):
|
|
|
|
|
big_disk: bool = True if cls.disks_width >= 25 else False
|
|
|
|
|
gli = f'{Mv.l(2)}{THEME.div_line}{Symbol.title_right}{Symbol.h_line * cls.disks_width}{THEME.mem_box}{Symbol.title_left}{Mv.l(cls.disks_width - 1)}'
|
|
|
|
|
for name, item in mem.disks.items():
|
|
|
|
|
if not name in Meters.disks_used:
|
|
|
|
|
continue
|
|
|
|
|
if cy > h - 2: break
|
|
|
|
|
out += Fx.trans(f'{Mv.to(y+cy, x+cx)}{gli}{THEME.title}{Fx.b}{item["name"]:{cls.disks_width - 2}.12}{Mv.to(y+cy, x + cx + cls.disks_width - 11)}{item["total"][:None if big_disk else -2]:>9}')
|
|
|
|
|
out += f'{Mv.to(y+cy, x + cx + (cls.disks_width // 2) - (len(item["io"]) // 2) - 2)}{Fx.ub}{THEME.main_fg}{item["io"]}{Fx.ub}{THEME.main_fg}{Mv.to(y+cy+1, x+cx)}'
|
|
|
|
|