mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-05 06:40:02 +00:00
Remove bc usage from OpenBSD battery
This commit is contained in:
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
Block a user