Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/battery


Modified Files:
        e_mod_main.c 


Log Message:
With two batteries, one might charge/discharge while the other is charged.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_main.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- e_mod_main.c        21 Feb 2005 16:08:02 -0000      1.20
+++ e_mod_main.c        24 Feb 2005 10:22:43 -0000      1.21
@@ -845,6 +845,7 @@
             if (!strcmp(present, "yes")) battery++;
             if (!strcmp(charging_state, "discharging")) discharging++;
             if (!strcmp(charging_state, "charging")) charging++;
+            if (!strcmp(charging_state, "charged")) rate_unknown = 0;
             bat_drain += rate;
             bat_level += level;
          }




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to