From 6f5c81c9a2ade012961dec66f3f0db4b54bb507b Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 9 Aug 2026 20:18:18 -0400 Subject: [PATCH] Show a finding by what identifies it, not by a key it may not have --- Plugin/unraid/Tools/ai_repair_sweep.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Plugin/unraid/Tools/ai_repair_sweep.php b/Plugin/unraid/Tools/ai_repair_sweep.php index 8bf3af9..53fbc93 100644 --- a/Plugin/unraid/Tools/ai_repair_sweep.php +++ b/Plugin/unraid/Tools/ai_repair_sweep.php @@ -53,10 +53,17 @@ if ($status) { printf("autofix: %s\n", vv_ai_repair_autofix_enabled() ? 'enabled' : 'disabled (detect only)'); printf("last pass: %s\n", $last ? date('Y-m-d H:i:s', $last) : 'never'); printf("open findings: %d\n", count($open)); + // 'ref' rather than 'conf_key' — it is the conf key for the kinds that have one, and the + // thing that identifies the finding for the kinds that do not. Printing the key left every + // arr health row with a blank column. foreach ($open as $f) { - printf(" [%s] %-22s %-28s seen %d — %s\n", - $f['severity'] ?? '?', $f['subject'] ?? '?', $f['conf_key'] ?? '?', - (int)($f['seen'] ?? 0), $f['state'] ?? '?'); + printf(" %-7s %-9s %-28s seen %-4d %-14s %s\n", + '[' . ($f['severity'] ?? '?') . ']', + $f['subject'] ?? '?', + $f['ref'] ?? ($f['conf_key'] ?? '?'), + (int)($f['seen'] ?? 0), + $f['state'] ?? '?', + mb_substr((string)($f['observed'] ?? ''), 0, 44)); } exit(0); }