diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index d149a3d..535c33b 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -130,36 +130,6 @@ const getMonitoringToolRecommendation = (vendor: string): string => { return "To get extended GPU monitoring information, please install the appropriate GPU monitoring tools for your hardware." } -const improveSensorLabel = (sensorName: string, adapter: string, chipName?: string): string => { - const adapterLower = adapter?.toLowerCase() || "" - const chipNameLower = chipName?.toLowerCase() || "" - const sensorNameLower = sensorName?.toLowerCase() || "" - - const isNVIDIA = - adapterLower.includes("nouveau") || - adapterLower.includes("nvidia") || - chipNameLower.includes("nouveau") || - chipNameLower.includes("nvidia") - - if (isNVIDIA) { - // Improve temperature labels - if (sensorNameLower.includes("temp")) { - return "NVIDIA GPU Temperature" - } - // Improve fan labels - if (sensorNameLower.includes("fan")) { - return "NVIDIA GPU Fan" - } - // Improve PWM labels - if (sensorNameLower.includes("pwm")) { - return "NVIDIA GPU PWM" - } - } - - // Return original name if no improvement needed - return sensorName -} - const groupAndSortTemperatures = (temperatures: any[]) => { const groups = { CPU: [] as any[], @@ -172,16 +142,8 @@ 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") || - chipNameLower.includes("nouveau") || - chipNameLower.includes("nvidia") - ) { - groups.GPU.push(temp) - } else if (nameLower.includes("cpu") || nameLower.includes("core") || nameLower.includes("package")) { + if (nameLower.includes("cpu") || nameLower.includes("core") || nameLower.includes("package")) { groups.CPU.push(temp) } else if (nameLower.includes("gpu") || adapterLower.includes("gpu")) { groups.GPU.push(temp) @@ -530,12 +492,10 @@ export default function Hardware() { const isHot = temp.current > (temp.high || 80) const isCritical = temp.current > (temp.critical || 90) - const displayName = improveSensorLabel(temp.name, temp.adapter, temp.chip_name) - return (