Haiku: Fix battery usage
This commit is contained in:
parent
68a14e5b1f
commit
fd8994b938
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1738,8 +1738,8 @@ getbattery() {
|
|||
;;
|
||||
|
||||
"Haiku")
|
||||
battery0full="$(awk -F '[^0-9]*' 'NR==2 {print $4}' /dev/power/acpi_battery/0)"
|
||||
battery0now="$(awk -F '[^0-9]*' 'NR==5 {print $4}' /dev/power/acpi_battery/0)"
|
||||
battery0full="$(awk -F '[^0-9]*' 'NR==5 {print $4}' /dev/power/acpi_battery/0)"
|
||||
battery0now="$(awk -F '[^0-9]*' 'NR==2 {print $4}' /dev/power/acpi_battery/0)"
|
||||
battery="$((battery0full / battery0now * 100))%"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue