mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
ncneofetch: print units on RAM output
This commit is contained in:
parent
d1fc0c3adc
commit
9b2ce38385
@ -443,7 +443,7 @@ infoplane_notcurses(struct notcurses* nc, const fetched_info* fi, int planeheigh
|
|||||||
bprefix(sinfo.totalram, 1, totalmet, 1);
|
bprefix(sinfo.totalram, 1, totalmet, 1);
|
||||||
bprefix(sinfo.totalram - sinfo.freeram, 1, usedmet, 1);
|
bprefix(sinfo.totalram - sinfo.freeram, 1, usedmet, 1);
|
||||||
ncplane_printf_aligned(infop, 2, NCALIGN_RIGHT, "Processes: %hu ", sinfo.procs);
|
ncplane_printf_aligned(infop, 2, NCALIGN_RIGHT, "Processes: %hu ", sinfo.procs);
|
||||||
ncplane_printf_aligned(infop, 2, NCALIGN_LEFT, " RAM %s/%s", usedmet, totalmet);
|
ncplane_printf_aligned(infop, 2, NCALIGN_LEFT, " RAM: %sB/%sB", usedmet, totalmet);
|
||||||
#endif
|
#endif
|
||||||
ncplane_printf_aligned(infop, 3, NCALIGN_LEFT, " DM: %s", fi->desktop);
|
ncplane_printf_aligned(infop, 3, NCALIGN_LEFT, " DM: %s", fi->desktop);
|
||||||
ncplane_printf_aligned(infop, 3, NCALIGN_RIGHT, "Shell: %s ", fi->shell);
|
ncplane_printf_aligned(infop, 3, NCALIGN_RIGHT, "Shell: %s ", fi->shell);
|
||||||
|
Loading…
Reference in New Issue
Block a user