diff options
Diffstat (limited to 'src/print_battery_info.c')
-rw-r--r-- | src/print_battery_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print_battery_info.c b/src/print_battery_info.c index c806493..36de3c8 100644 --- a/src/print_battery_info.c +++ b/src/print_battery_info.c @@ -58,6 +58,8 @@ void print_battery_info(int number, const char *format, bool last_full_capacity) remaining = atoi(walk+1); else if (BEGINS_WITH(last, "POWER_SUPPLY_CURRENT_NOW")) present_rate = atoi(walk+1); + else if (BEGINS_WITH(last, "POWER_SUPPLY_POWER_NOW")) + present_rate = atoi(walk+1); else if (BEGINS_WITH(last, "POWER_SUPPLY_STATUS=Charging")) status = CS_CHARGING; else if (BEGINS_WITH(last, "POWER_SUPPLY_STATUS=Full")) |