From e7f09efac79f995cc1a9417218cc1cb27f3a5432 Mon Sep 17 00:00:00 2001 From: piotr Date: Sat, 17 Jun 2023 01:47:30 +0200 Subject: [PATCH] simplify coretemp --- gopsuinfo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gopsuinfo.go b/gopsuinfo.go index 52fe9dc..04552b4 100644 --- a/gopsuinfo.go +++ b/gopsuinfo.go @@ -64,10 +64,7 @@ func temperatures(asIcon bool) string { if vals["acpitz"] == 0 && temp.SensorKey == "acpitz_input" { vals["acpitz"] = int(temp.Temperature) } - if vals["coretemp"] == 0 && temp.SensorKey == "coretemp_packageid0_input" { - vals["coretemp"] = int(temp.Temperature) - } - if vals["coretemp"] == 0 && temp.SensorKey == "coretemp_core0_input" { + if vals["coretemp"] == 0 && temp.SensorKey == "coretemp_packageid0_input" || temp.SensorKey == "coretemp_core0_input" { vals["coretemp"] = int(temp.Temperature) } if temp.SensorKey == "k10temp_tctl_input" || temp.SensorKey == "k10temp_tdie_input" {