print memory usage in statusbar

This commit is contained in:
Babz 2021-09-15 18:58:15 +02:00
parent b316ffb66d
commit 6dcf60753b
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ void set_statusbar(int tick_ctr, int shift_state, int alpha_state, int battery)
char *alpha_symbol = alpha_state ? (shift_state ? "A" : "a") : "1";
char prefix[UNS_TERM_COLS + 1];
sprintf(prefix, "%s%s t=%d bat=%.2fV uram=%d%%", shift_symbol, alpha_symbol, tick_ctr, (float)battery / 100, uram_percent);
sprintf(prefix, "%s%s t=%d bat=%.2fV uram=%d%%(%dk)", shift_symbol, alpha_symbol, tick_ctr, (float)battery / 100,
uram_percent, ram_stats->used_memory / 1024);
char now[32];
date_str(now);