Closed campag closed 7 years ago
Ref https://github.com/pimoroni/clean-shutdown/blob/master/daemon/usr/bin/cleanshutd#L99
Looks like that sleep $polling_rate should be in the outer while loop. CPU usage plummets when I move it one line below.
Regards David.
Looks like you're right- where it is now it wouldn't have any effect unless the button is pressed.
ha! fixed!
Ref https://github.com/pimoroni/clean-shutdown/blob/master/daemon/usr/bin/cleanshutd#L99
Looks like that sleep $polling_rate should be in the outer while loop. CPU usage plummets when I move it one line below.
Regards David.