From: <dom...@us...> - 2020-11-29 22:39:31
|
Revision: 1048 http://sourceforge.net/p/fvwm-crystal/code/1048 Author: dominique_libre Date: 2020-11-29 22:39:25 +0000 (Sun, 29 Nov 2020) Log Message: ----------- FvwmScript-CpuTemp: fix temperature reading path Modified Paths: -------------- ChangeLog fvwm/components/scripts/FvwmScript-CpuTemp Modified: ChangeLog =================================================================== --- ChangeLog 2020-10-07 00:02:29 UTC (rev 1047) +++ ChangeLog 2020-11-29 22:39:25 UTC (rev 1048) @@ -1,5 +1,8 @@ ChangeLog for FVWM-Crystal +dimanche 29 novembre 2020 + fvwm/components/scripts/FvwmScript-CpuTemp: fix temperature reading path. + Version 3.6.7 ------------- Modified: fvwm/components/scripts/FvwmScript-CpuTemp =================================================================== --- fvwm/components/scripts/FvwmScript-CpuTemp 2020-10-07 00:02:29 UTC (rev 1047) +++ fvwm/components/scripts/FvwmScript-CpuTemp 2020-11-29 22:39:25 UTC (rev 1048) @@ -15,7 +15,7 @@ Init Begin Set $temp_prev = 1 - Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1) + Set $temp = (GetOutput {for i in /sys/class/hwmon/hwmon*/temp1_input; do sed 's:...$::' <$i; break; done} 1 1) Set $degree = (Gettext {°C}) Set $tmp = $temp $degree ChangeTitle 1 $tmp @@ -25,7 +25,7 @@ Begin If (RemainderOfDiv (GetTime) 2)==0 Then Begin - Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1) + Set $temp = (GetOutput {for i in /sys/class/hwmon/hwmon*/temp1_input; do sed 's:...$::' <$i; break; done} 1 1) Set $degree = (Gettext {°C}) Set $tmp = $temp $degree This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |