aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-21 05:17:41 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-21 05:17:41 +0100
commit153fcaa6c17124ebbf0d50df5da95f3564c7402b (patch)
tree1bf422645d2285d06df43de299564937ed78254e /procps
parent7426920461738367205e3d08649c827c747bd93d (diff)
downloadbusybox-w32-153fcaa6c17124ebbf0d50df5da95f3564c7402b.tar.gz
busybox-w32-153fcaa6c17124ebbf0d50df5da95f3564c7402b.tar.bz2
busybox-w32-153fcaa6c17124ebbf0d50df5da95f3564c7402b.zip
Replace __uClinux__ define with !BB_MMU
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/free.c b/procps/free.c
index b13859103..e8bea5064 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -27,7 +27,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
27 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */ 27 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */
28 info.totalram/=info.mem_unit; 28 info.totalram/=info.mem_unit;
29 info.freeram/=info.mem_unit; 29 info.freeram/=info.mem_unit;
30#ifndef __uClinux__ 30#if BB_MMU
31 info.totalswap/=info.mem_unit; 31 info.totalswap/=info.mem_unit;
32 info.freeswap/=info.mem_unit; 32 info.freeswap/=info.mem_unit;
33#endif 33#endif
@@ -38,7 +38,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
38 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */ 38 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */
39 info.totalram*=info.mem_unit; 39 info.totalram*=info.mem_unit;
40 info.freeram*=info.mem_unit; 40 info.freeram*=info.mem_unit;
41#ifndef __uClinux__ 41#if BB_MMU
42 info.totalswap*=info.mem_unit; 42 info.totalswap*=info.mem_unit;
43 info.freeswap*=info.mem_unit; 43 info.freeswap*=info.mem_unit;
44#endif 44#endif
@@ -56,7 +56,7 @@ int free_main(int argc UNUSED_PARAM, char **argv)
56 info.totalram-info.freeram, info.freeram, 56 info.totalram-info.freeram, info.freeram,
57 info.sharedram, info.bufferram); 57 info.sharedram, info.bufferram);
58 58
59#ifndef __uClinux__ 59#if BB_MMU
60 printf("%6s%13ld%13ld%13ld\n", "Swap:", info.totalswap, 60 printf("%6s%13ld%13ld%13ld\n", "Swap:", info.totalswap,
61 info.totalswap-info.freeswap, info.freeswap); 61 info.totalswap-info.freeswap, info.freeswap);
62 62