]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2000-11-17 10:36:23 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 17 Nov 2000 10:36:23 +0000 (10:36 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 17 Nov 2000 10:36:23 +0000 (10:36 +0000)
fixed parsing of /proc/net/dev for 2.0 kernels

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

system.c

index 130689ca1f39ee3220733c3bb489ec3dfb9f79ee..8a55d04b8d7bbffb3b429a5190dec3d327ce8992 100644 (file)
--- a/system.c
+++ b/system.c
@@ -1,4 +1,4 @@
-/* $Id: system.c,v 1.17 2000/10/08 09:16:40 reinelt Exp $
+/* $Id: system.c,v 1.18 2000/11/17 10:36:23 reinelt Exp $
  *
  * system status retreivement
  *
  *
  *
  * $Log: system.c,v $
+ * Revision 1.18  2000/11/17 10:36:23  reinelt
+ *
+ * fixed parsing of /proc/net/dev for 2.0 kernels
+ *
  * Revision 1.17  2000/10/08 09:16:40  reinelt
  *
  *
@@ -638,7 +642,7 @@ int Net (int *rx, int *tx, int *bytes)
       pkg_rx+=v[0];
       pkg_tx+=v[8];
       *bytes=1;
-    } else if (n==11) {
+    } else if (n==12) {
       pkg_rx+=v[0];
       pkg_tx+=v[5];
       *bytes=0;