Paul Mundt (lethal) writes:
authorEric Andersen <andersen@codepoet.org>
Sat, 11 Oct 2003 18:47:20 +0000 (18:47 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 11 Oct 2003 18:47:20 +0000 (18:47 -0000)
commit7857c038087a94345e768bc010134d8ff2586809
treee4a246f2267a80f39138920b283aa28d56011e5a
parentd12061b299a096359b998e0e4415ebe77b45c96b
Paul Mundt (lethal) writes:

Erik,

The format for /proc/meminfo has changed between 2.4 and 2.6, quite considerably.
In addition to the removal of the two-line summary that was present in 2.4,
MemShared was also removed. Presently (at least in busybox CVS HEAD), top fails
to parse this correctly and spews forth a:

top: failed to read 'meminfo'

message. This patch switches around some of the semantics a little to do sane
parsing for both 2.4 and 2.6. Also, in the event that the summary gets yanked
from 2.4, this patch will deal with that as well. With this patch, I'm able
to run top correctly on 2.6.0-test7 (tested on sh).

Please apply.

 procps/top.c |   60 +++++++++++++++++++++++++++++++++++++++++++++++------------
  1 files changed, 48 insertions(+), 12 deletions(-)
procps/top.c