Changeset 4592 for lm-sensors/trunk/prog/pwm/fancontrol
- Timestamp:
- 07/08/07 13:19:10 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/pwm/fancontrol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/pwm/fancontrol
r4588 r4592 45 45 46 46 echo $$ > /var/run/fancontrol.pid 47 48 declare -i pwmval 47 49 48 50 function LoadConfig { … … 325 327 else 326 328 # calculate the new value from temperature and settings 327 letpwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}"329 pwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}" 328 330 if [ $pwmpval -eq 0 -o $fanval -eq 0 ] 329 331 then # if fan was stopped start it using a safe value
