[PATCH] top: fix parsing of /proc/meminfo

Timo Teras timo.teras at iki.fi
Sun Jul 20 14:30:56 UTC 2014


On Sun, 20 Jul 2014 13:24:42 +0200
Denys Vlasenko <vda.linux at googlemail.com> wrote:

> On Fri, Jul 18, 2014 at 9:07 PM, Timo Teräs <timo.teras at iki.fi> wrote:
> > and do it in smaller code:
> 
> In what way does it fix it? What's the bug?

The existing code has fixed order for the fields in meminfo, but the
order has changed over time. It fixes the bug I reported earlier:
http://lists.busybox.net/pipermail/busybox/2014-July/081230.html

It also fixes the 'shared memory' usage on new kernels as the field
name was changed at some point.

I can post an updated patch with updated commit message later today or
tomorrow.

/Timo


More information about the busybox mailing list