Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/e

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


Modified Files:
        e_mod_main.c 


Log Message:
battery hasnt been working on my fbsd laptop for a couple monthes, couldnt be 
bothered fixing, just did.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/battery/e_mod_main.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- e_mod_main.c        14 Aug 2006 15:22:45 -0000      1.85
+++ e_mod_main.c        19 Aug 2006 09:07:33 -0000      1.86
@@ -932,7 +932,7 @@
    len = sizeof(life);
    if (sysctl(mib_life, 4, &life, &len, NULL, 0) == -1)
       /* ERROR */
-      level = -1; 
+      level = -1;
 
    bat_val = life;
       
@@ -1008,7 +1008,7 @@
                    stat->alarm = 1;
               }
          }
-       if (!level)
+       if (level == -1)
           {
             stat->reading = strdup(_("BAD DRIVER"));
             stat->time = strdup("--:--");



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to