diff options
author | reinelt <> | 2000-11-17 10:36:23 +0000 |
---|---|---|
committer | reinelt <> | 2000-11-17 10:36:23 +0000 |
commit | c68b83b15cf0a88478f4bd19d37e4a9f5c4e65cd (patch) | |
tree | ce33a3d9a1cc4a7554205f8983a87e38109e8e9d /system.c | |
parent | c80db3a24fb8021934a39223e40acb1113cbe799 (diff) | |
download | lcd4linux-c68b83b15cf0a88478f4bd19d37e4a9f5c4e65cd.tar.gz |
[lcd4linux @ 2000-11-17 10:36:23 by reinelt]
fixed parsing of /proc/net/dev for 2.0 kernels
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |