fix charge reading
This commit is contained in:
parent
cb7295066a
commit
758eb3e873
4
MyRRD.pm
4
MyRRD.pm
|
@ -1629,10 +1629,10 @@ sub battery
|
|||
my $this = shift;
|
||||
my $bat = shift;
|
||||
|
||||
open FH, "</sys/class/power_supply/$bat/energy_full_design";
|
||||
open FH, "</sys/class/power_supply/$bat/charge_full_design";
|
||||
my $full = <FH>;
|
||||
close FH;
|
||||
open FH, "</sys/class/power_supply/$bat/energy_now";
|
||||
open FH, "</sys/class/power_supply/$bat/charge_now";
|
||||
my $now = <FH>;
|
||||
close FH;
|
||||
chomp $full;
|
||||
|
|
Loading…
Reference in New Issue