diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-05-25 21:36:50 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-05-25 21:38:20 +0200 |
| commit | bace2d7f20acc609d552a80bb018939d5e8afab8 (patch) | |
| tree | 0525710979c3342a2ed74fc675c192cb9b0c7870 /ui | |
| parent | 54342ed0cc61585d953183ec29309eb0db846b72 (diff) | |
Save file compression and data aggregation always enabled
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/curses/ui.c | 9 | ||||
| -rw-r--r-- | ui/daemon/ui.c | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/ui/curses/ui.c b/ui/curses/ui.c index 6755619..ce73c01 100644 --- a/ui/curses/ui.c +++ b/ui/curses/ui.c @@ -813,11 +813,6 @@ void tui_print(void) { #if defined(DATA_PUSH_INTERVAL) tui_ulx_field(l++, "dpsi", DATA_PUSH_INTERVAL); #endif -#if defined(COMPRESS) - tui_str_field(l++, "xsav", "enabled"); -#else - tui_str_field(l++, "xsav", "disabled"); -#endif tui_ulx_field(l++, "step", g_steps); tui_ulx_field(l++, "sync", g_syncs); tui_ulx_field(l++, "step", g_step_block); @@ -1237,8 +1232,8 @@ void init(void) { init_pair(PAIR_INFO, COLOR_GREEN, COLOR_BLACK); init_pair(PAIR_WARN, COLOR_RED, COLOR_BLACK); - g_info = tui_info_impl; - g_warn = tui_warn_impl; + log_info = tui_info_impl; + log_warn = tui_warn_impl; #if defined(COMMAND_NEW) salis_init(); diff --git a/ui/daemon/ui.c b/ui/daemon/ui.c index cec3296..93f088f 100644 --- a/ui/daemon/ui.c +++ b/ui/daemon/ui.c @@ -7,7 +7,7 @@ void sig_handler(int signo) { (void)signo; if (g_running) { - g_warn("Signal received, will stop simulator soon..."); + log_warn("Signal received, will stop simulator soon..."); g_running = false; } } @@ -28,7 +28,7 @@ void step_block(void) { float secs = (float)(end - beg) / (float)CLOCKS_PER_SEC; float steps_per_sec = (float)g_step_block / secs; - g_info("Simulator running on step %#lx @%.1f steps/s", g_steps, steps_per_sec); + log_info("Simulator running on step %#lx @%.1f steps/s", g_steps, steps_per_sec); } int main(void) { @@ -48,10 +48,10 @@ int main(void) { step_block(); } - g_info("Saving simulation..."); + log_info("Saving simulation..."); salis_save(SIM_PATH); salis_free(); - g_info("Exiting salis..."); + log_info("Exiting salis..."); return 0; } |
