Show
Ignore:
Timestamp:
07/08/07 13:19:10 (6 years ago)
Author:
khali
Message:

Only write integer values to pwm files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/pwm/fancontrol

    r4588 r4592  
    4545 
    4646echo $$ > /var/run/fancontrol.pid 
     47 
     48declare -i pwmval 
    4749 
    4850function LoadConfig { 
     
    325327                else  
    326328                  # calculate the new value from temperature and settings 
    327                   let pwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}" 
     329                  pwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}" 
    328330                  if [ $pwmpval -eq 0 -o $fanval -eq 0 ] 
    329331                  then # if fan was stopped start it using a safe value