It should work now
This commit is contained in:
parent
cfa2df540c
commit
28d33f7526
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -1412,7 +1412,7 @@ getbattery () {
|
|||
battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3)
|
||||
battery0now="${battery0now/ Wh*}"
|
||||
|
||||
battery="$(( 100 * $battery0now / $battery0full ))%"
|
||||
battery="$(echo "100 * $battery0now / $battery0full" | bc)%"
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
|
|
Loading…
Reference in a new issue