Fix makefile: no redundant sudo; Fix mbpfan.c: no more sudden silence when starting.
This commit is contained in:
parent
643c7a3746
commit
bb264080a5
2 changed files with 2 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -56,7 +56,7 @@ clean:
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
make install
|
make install
|
||||||
sudo /usr/sbin/mbpfan -f -v -t
|
/usr/sbin/mbpfan -f -v -t
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/sbin/mbpfan
|
rm /usr/sbin/mbpfan
|
||||||
|
|
|
@ -504,8 +504,6 @@ void mbpfan()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(polling_interval);
|
|
||||||
|
|
||||||
step_up = (float)( max_fan_speed - min_fan_speed ) /
|
step_up = (float)( max_fan_speed - min_fan_speed ) /
|
||||||
(float)( ( max_temp - high_temp ) * ( max_temp - high_temp + 1 ) / 2 );
|
(float)( ( max_temp - high_temp ) * ( max_temp - high_temp + 1 ) / 2 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue