summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fee89d1)
raw | patch | inline | side by side (parent: fee89d1)
author | octo <octo> | |
Sat, 28 Jan 2006 10:46:11 +0000 (10:46 +0000) | ||
committer | octo <octo> | |
Sat, 28 Jan 2006 10:46:11 +0000 (10:46 +0000) |
src/battery.c | patch | blob | history |
diff --git a/src/battery.c b/src/battery.c
index 123a05acd812915a4095feee5c87e61f3a259cd0..541bab3d09a6d203f43bf6e8d2ddf2be2124a71b 100644 (file)
--- a/src/battery.c
+++ b/src/battery.c
while ((ent = readdir (dh)) != NULL)
{
+ if (ent->d_name[0] == '.')
+ continue;
+
len = snprintf (filename, BUFSIZE, "/proc/acpi/battery/%s/state", ent->d_name);
if ((len >= BUFSIZE) || (len < 0))
continue;