Open AmNotAGoose opened 6 months ago
When I try to use battery-combined-udev it gives me this error: 34: arithmetic expression: expecting primary: ""31800000 + 0""
A similar error happens the following lines:
battery_level=$(("$battery_level_0 + $battery_level_1")) battery_max=$(("$battery_max_0 + $battery_max_1")) battery_percent=$(("$battery_level * 100")) battery_percent=$(("$battery_percent / $battery_max"))
After changing it to the following, the problem was fixed
battery_level=$(($battery_level_0 + $battery_level_1)) battery_max=$(($battery_max_0 + $battery_max_1)) battery_percent=$(($battery_level * 100)) battery_percent=$(($battery_percent / $battery_max))
Which shell are you using?
I'm using bash
ps -p $$ PID TTY TIME CMD 86772 pts/0 00:00:00 bash
Same here, using bash in Debian Bookworm.
When I try to use battery-combined-udev it gives me this error: 34: arithmetic expression: expecting primary: ""31800000 + 0""
A similar error happens the following lines:
After changing it to the following, the problem was fixed