From 409e40f3b73b19c87e541e1d4598b234df78bb16 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 24 Oct 2025 23:04:03 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index 7416067..ad0adb9 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -188,8 +188,21 @@ const groupAndSortTemperatures = (temperatures: any[]) => { temperatures.forEach((temp) => { const nameLower = temp.name.toLowerCase() const adapterLower = temp.adapter?.toLowerCase() || "" + const chipNameLower = temp.chip_name?.toLowerCase() || "" - if (adapterLower.includes("nouveau") || adapterLower.includes("nvidia")) { + console.log("[v0] Classifying temperature sensor:", { + name: temp.name, + adapter: temp.adapter, + chip_name: temp.chip_name, + }) + + if ( + adapterLower.includes("nouveau") || + adapterLower.includes("nvidia") || + chipNameLower.includes("nouveau") || + chipNameLower.includes("nvidia") + ) { + console.log("[v0] Classified as GPU (NVIDIA)") groups.GPU.push(temp) } else if (nameLower.includes("cpu") || nameLower.includes("core") || nameLower.includes("package")) { groups.CPU.push(temp) @@ -204,6 +217,14 @@ const groupAndSortTemperatures = (temperatures: any[]) => { } }) + console.log("[v0] Temperature groups:", { + CPU: groups.CPU.length, + GPU: groups.GPU.length, + NVME: groups.NVME.length, + PCI: groups.PCI.length, + OTHER: groups.OTHER.length, + }) + return groups }