Remove bc usage from OpenBSD battery
This commit is contained in:
parent
15c6720c26
commit
79fccfa930
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1932,7 +1932,7 @@ getbattery () {
|
|||
battery0now="${battery0now/ Wh*}"
|
||||
|
||||
[ "$battery0full" ] && \
|
||||
battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%"
|
||||
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
|
|
Loading…
Reference in a new issue