diff options
author | Sean Greenslade | 2020-05-07 18:38:58 -0700 |
---|---|---|
committer | Sean Greenslade | 2020-05-07 18:38:58 -0700 |
commit | 906c33da957ceaa18eee61a7db5f0204be69bb7c (patch) | |
tree | 5ef8c888fb111c5f4d28e251ba1061ed5f364d89 /0001_add_merged.patch | |
parent | a49a729bfba72004df3afb1c8ed49a0a28c22955 (diff) | |
download | aur-906c33da957ceaa18eee61a7db5f0204be69bb7c.tar.gz |
Fixed failure to tabulate current rate.
Diffstat (limited to '0001_add_merged.patch')
-rw-r--r-- | 0001_add_merged.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/0001_add_merged.patch b/0001_add_merged.patch index 5d77589cf36d..01edb39692f6 100644 --- a/0001_add_merged.patch +++ b/0001_add_merged.patch @@ -169,3 +169,22 @@ diff -aur a/main.c b/main.c } if (show_ac_adapter) { do_show_ac_adapter(acpi_path, show_empty_slots, proc_interface); +--- a/acpi.c 2020-05-07 17:32:50.579352165 -0700 ++++ b.acpi.c 2020-05-07 17:31:43.465878060 -0700 +@@ -368,6 +368,7 @@ + if (present_rate > MIN_PRESENT_RATE) { + seconds = 3600 * (last_capacity - remaining_capacity) / present_rate; + poststr = " until charged"; ++ total_present_rate += present_rate; + } else { + poststr = "charging at zero rate - will never fully charge."; + seconds = -1; +@@ -376,6 +377,7 @@ + if (present_rate > MIN_PRESENT_RATE) { + seconds = 3600 * remaining_capacity / present_rate; + poststr = " remaining"; ++ total_present_rate -= present_rate; + } else { + poststr = "discharging at zero rate - will never fully discharge."; + seconds = -1; + |