ncneofetch: print units on RAM output

This commit is contained in:
nick black 2021-03-07 14:11:59 -05:00
parent d1fc0c3adc
commit 9b2ce38385
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -443,7 +443,7 @@ infoplane_notcurses(struct notcurses* nc, const fetched_info* fi, int planeheigh
bprefix(sinfo.totalram, 1, totalmet, 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_LEFT, " RAM %s/%s", usedmet, totalmet);
ncplane_printf_aligned(infop, 2, NCALIGN_LEFT, " RAM: %sB/%sB", usedmet, totalmet);
#endif
ncplane_printf_aligned(infop, 3, NCALIGN_LEFT, " DM: %s", fi->desktop);
ncplane_printf_aligned(infop, 3, NCALIGN_RIGHT, "Shell: %s ", fi->shell);