Skip to content

Commit

Permalink
simplify coretemp
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Jun 16, 2023
1 parent 65e24f5 commit e7f09ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gopsuinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit e7f09ef

Please sign in to comment.