docker services real

This commit is contained in:
2026-02-16 20:47:44 +09:00
parent 2e5ad58978
commit b33c658885
6 changed files with 65 additions and 19 deletions

View File

@@ -369,9 +369,14 @@ void dashboard_ui_update_stats(const pi_stats_t *stats)
/* Services table */
s_service_count = stats->service_count;
for (int i = 0; i < stats->service_count && i < WS_MAX_SERVICES; i++) {
const char *tag;
switch (stats->services[i].status) {
case SVC_RUNNING: tag = "[RUN]"; break;
case SVC_WARNING: tag = "[WARN]"; break;
default: tag = "[STOP]"; break;
}
lv_table_set_cell_value(tbl_services, i, 0, stats->services[i].name);
lv_table_set_cell_value(tbl_services, i, 1,
stats->services[i].running ? "[RUN]" : "[STOP]");
lv_table_set_cell_value(tbl_services, i, 1, tag);
}
/* Clear unused rows */
for (int i = stats->service_count; i < WS_MAX_SERVICES; i++) {