mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-17 20:49:27 -05:00
Haiku: Fix battery again
This commit is contained in:
parent
fd8994b938
commit
09aa5b9ba9
4
neofetch
4
neofetch
|
|
@ -1738,8 +1738,8 @@ getbattery() {
|
|||
;;
|
||||
|
||||
"Haiku")
|
||||
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)"
|
||||
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)"
|
||||
battery="$((battery0full / battery0now * 100))%"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user