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