From e389d717d66e98d7b889a4ed07ebb9e587525953 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 13 Jul 2025 11:12:54 +0300 Subject: [PATCH] Show unspecified core as * in sys command --- flix/cli.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flix/cli.ino b/flix/cli.ino index 9e21e8b..f611106 100644 --- a/flix/cli.ino +++ b/flix/cli.ino @@ -145,9 +145,9 @@ void doCommand(String str, bool echo = false) { uint32_t totalRunTime; uxTaskGetSystemState(systemState, taskCount, &totalRunTime); for (int i = 0; i < taskCount; i++) { - int core = systemState[i].xCoreID == tskNO_AFFINITY ? -1 : systemState[i].xCoreID; + String core = systemState[i].xCoreID == tskNO_AFFINITY ? "*" : String(systemState[i].xCoreID); int cpuPercentage = systemState[i].ulRunTimeCounter / (totalRunTime / 100); - print("%-5d%-20s%-7d%-6d%-6d%d\n",systemState[i].xTaskNumber, systemState[i].pcTaskName, + print("%-5d%-20s%-7d%-6d%-6s%d\n",systemState[i].xTaskNumber, systemState[i].pcTaskName, systemState[i].usStackHighWaterMark, systemState[i].uxCurrentPriority, core, cpuPercentage); } delete[] systemState;