It should work now
This commit is contained in:
parent
cfa2df540c
commit
28d33f7526
2
fetch
2
fetch
|
@ -1412,7 +1412,7 @@ getbattery () {
|
||||||
battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3)
|
battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3)
|
||||||
battery0now="${battery0now/ Wh*}"
|
battery0now="${battery0now/ Wh*}"
|
||||||
|
|
||||||
battery="$(( 100 * $battery0now / $battery0full ))%"
|
battery="$(echo "100 * $battery0now / $battery0full" | bc)%"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
|
Reference in New Issue