AmendHub

jcs

/

subtext

/

amendments

/

238

logger: Include free heap size in titlebar


jcs made amendment 238 about 1 month ago
--- logger.c Sun Jul 31 23:04:19 2022 +++ logger.c Thu Aug 11 16:05:11 2022 @@ -74,7 +74,7 @@ logger_init(void) logger->focusable = focusable; DrawControls(logger->win); - + return logger; } @@ -182,7 +182,8 @@ logger_update_title(void) short n, uprinted = 0; snprintf(logger_title, sizeof(logger_title), - "%s | %ld Call%s | ", db->config.name, + "%s | %ldKB Free | %ld Call%s | ", db->config.name, + (FreeMem() / 1024), session_today_tally.calls, session_today_tally.calls == 1 ? "" : "s"); for (n = 0; n < MAX_SESSIONS; n++) {