all repos — tint2 @ 85b3b8a749713d37d24898e436766df4d5f56d35

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Battery: fix comment in estimate_power_usage
o9000 mrovi9000@gmail.com
commit

85b3b8a749713d37d24898e436766df4d5f56d35

parent

42d1ba2b207a3442924c72b21a83517bc876bdb1

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/battery/linux.csrc/battery/linux.c

@@ -285,7 +285,7 @@ static gint estimate_power_usage(struct psy_battery *bat, gint old_energy_now, gint64 old_timestamp) {

gint64 diff_power = ABS(bat->energy_now - old_energy_now); gint64 diff_time = bat->timestamp - old_timestamp; - /* µW = (µWh * 3600) / (µs * 1000000) */ + /* µW = (µWh * 3600) / (µs / 1000000) */ gint power = diff_power * 3600 * 1000000 / MAX(1, diff_time); return power;