Remove bc usage from OpenBSD battery
This commit is contained in:
parent
15c6720c26
commit
79fccfa930
2
neofetch
2
neofetch
|
@ -1932,7 +1932,7 @@ getbattery () {
|
||||||
battery0now="${battery0now/ Wh*}"
|
battery0now="${battery0now/ Wh*}"
|
||||||
|
|
||||||
[ "$battery0full" ] && \
|
[ "$battery0full" ] && \
|
||||||
battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%"
|
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
|
Reference in New Issue