We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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))
The text was updated successfully, but these errors were encountered:
Which shell are you using?
Sorry, something went wrong.
I'm using bash
ps -p $$ PID TTY TIME CMD 86772 pts/0 00:00:00 bash
Same here, using bash in Debian Bookworm.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: