]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2004-02-15 07:23:04 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 15 Feb 2004 07:23:04 +0000 (07:23 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 15 Feb 2004 07:23:04 +0000 (07:23 +0000)
bug in netdev parsing fixed

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@365 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

lcd4linux.conf.sample
plugin_netdev.c

index 246e327c09c19b006fb8336096e77e49608b5bd3..ffd01dbf24e18ed63eeab9a3aed13a8c68b6d941 100644 (file)
@@ -252,6 +252,15 @@ Layout Default {
     }
 }
 
+Layout L24x8 {
+    Row1 {
+       Col1  'Load'
+       Col11 'BusyBar'
+    }
+    Row2 {
+    }
+}
+
 Layout L16x2 {
     Row1 {
        Col1  'Busy'
index 2d49e3fcc7702fae6d2b2d01acdf00584d3553c4..91b2edb202981ff132c4729ee109a58abd482f49 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: plugin_netdev.c,v 1.3 2004/02/01 19:37:40 reinelt Exp $
+/* $Id: plugin_netdev.c,v 1.4 2004/02/15 07:23:04 reinelt Exp $
  *
  * plugin for /proc/net/dev parsing
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: plugin_netdev.c,v $
+ * Revision 1.4  2004/02/15 07:23:04  reinelt
+ * bug in netdev parsing fixed
+ *
  * Revision 1.3  2004/02/01 19:37:40  reinelt
  * got rid of every strtok() incarnation.
  *
@@ -90,7 +93,7 @@ static int parse_netdev (void)
   while (!feof(stream)) {
     char buffer[256];
     char header[256], *h, *t;
-    char *head[32];
+    char *head[64];
     char delim[]=" :|\t\n";
     int  col;