Dear sirs,
At present I have something that looks like this:
Code:
#!/bin/sh
now=`cat /sys/class/power_supply/BAT0/charge_now`
full=`cat /sys/class/power_supply/BAT0/charge_full`
out=`echo $now $full | awk '{ printf("%f\n", $1/$2) }'`
echo "Charge: "$out"%"
this math is wrong, outputing "Charge: 0.932519%" but the correct value is 100 times that.
How can I edit that to give me the correct value?
Thanks very much!