From ef2f430d34634db525b90e5497c751423762e6c4 Mon Sep 17 00:00:00 2001 From: reinelt Date: Fri, 17 Nov 2000 10:36:23 +0000 Subject: [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 --- system.c | 8 ++++++-- 1 file 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; -- cgit v1.2.3