aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-11-17 10:36:23 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-11-17 10:36:23 +0000
commitef2f430d34634db525b90e5497c751423762e6c4 (patch)
treece33a3d9a1cc4a7554205f8983a87e38109e8e9d
parent6a644394ec589f50a0536a76a82e069dbe5907ed (diff)
downloadlcd4linux-ef2f430d34634db525b90e5497c751423762e6c4.tar.gz
[lcd4linux @ 2000-11-17 10:36:23 by reinelt]
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
Diffstat (limited to '')
-rw-r--r--system.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/system.c b/system.c
index 130689c..8a55d04 100644
--- 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
*
@@ -20,6 +20,10 @@
*
*
* $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;