diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-07-22 18:11:40 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-07-22 18:11:40 +0200 |
commit | e23ca1da6dd8ff423c13ef1eaae62dd37024998a (patch) | |
tree | 13a7abd86952f3216686335349b9c7ae4c13291e /package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch | |
parent | 6d249fcdface15ae236b7eb71dc84d8e3c28f417 (diff) | |
download | buildroot-novena-e23ca1da6dd8ff423c13ef1eaae62dd37024998a.tar.gz buildroot-novena-e23ca1da6dd8ff423c13ef1eaae62dd37024998a.zip |
busybox: additional 1.17.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch')
-rw-r--r-- | package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch b/package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch new file mode 100644 index 000000000..84c91f34a --- /dev/null +++ b/package/busybox/busybox-1.17.0/busybox-1.17.0-top.patch @@ -0,0 +1,18 @@ +diff -urpN busybox-1.17.0/procps/top.c busybox-1.17.0-top/procps/top.c +--- busybox-1.17.0/procps/top.c 2010-06-24 04:40:43.000000000 +0200 ++++ busybox-1.17.0-top/procps/top.c 2010-07-19 00:27:04.000000000 +0200 +@@ -686,10 +686,10 @@ static int topmem_sort(char *a, char *b) + n = offsetof(topmem_status_t, vsz) + (sort_field * sizeof(mem_t)); + l = *(mem_t*)(a + n); + r = *(mem_t*)(b + n); +-// if (l == r) { +-// l = a->mapped_rw; +-// r = b->mapped_rw; +-// } ++ if (l == r) { ++ l = ((topmem_status_t*)a)->dirty; ++ r = ((topmem_status_t*)b)->dirty; ++ } + /* We want to avoid unsigned->signed and truncation errors */ + /* l>r: -1, l=r: 0, l<r: 1 */ + n = (l > r) ? -1 : (l != r); |