From 8c6d407394399d79c0312bd979ba1e7f8601fc4a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 13 Jul 2007 12:26:54 +0200 Subject: [PATCH] Fixed displaying of charging status. --- batt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batt.c b/batt.c index f8e1ddc..eadab59 100644 --- a/batt.c +++ b/batt.c @@ -75,7 +75,7 @@ static void scan_batt(void) total_capa += last_full; if (charging) { - int ch = last_full*3600 / rate; + int ch = (last_full - remains)*3600 / rate; if (ch > total_charge) total_charge = ch; } -- 2.39.2