Changed battery ID to empty
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
# Change this variable to your batteries identification e.g. BAT0
|
# Change this variable to your batteries identification e.g. BAT0
|
||||||
|
|
||||||
battery="BAT0"
|
battery=""
|
||||||
charge=$(cat /sys/class/power_supply/$battery/charge_now)
|
charge=$(cat /sys/class/power_supply/$battery/charge_now)
|
||||||
discharge=$(cat /sys/class/power_supply/$battery/current_now)
|
discharge=$(cat /sys/class/power_supply/$battery/current_now)
|
||||||
hours=$(echo "scale=2; $charge / $discharge" | bc)
|
hours=$(echo "scale=2; $charge / $discharge" | bc)
|
||||||
|
Reference in New Issue
Block a user