diff --git a/configure.ac b/configure.ac index 08474b1b..e0dc1afb 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,14 @@ if test "x$enable_wide_percent" = xyes; then AC_DEFINE(BOOST_PERCNT, 1, [provide extra precision under %CPU and %MEM for top]) fi +AC_ARG_ENABLE([wide-memory], + AS_HELP_STRING([--disable-wide-memory], [disable extra precision under memory fields for top]), + [disable_wide_memory=yes], [] +) +if test "x$disable_wide_memory" = xyes; then + AC_DEFINE(NOBOOST_MEMS, 1, [disable extra precision under memory fields for top]) +fi + DL_LIB= AC_ARG_ENABLE([numa], AS_HELP_STRING([--disable-numa], [disable NUMA/Node support in top]), diff --git a/top/top.h b/top/top.h index f327cfdb..f3567980 100644 --- a/top/top.h +++ b/top/top.h @@ -24,6 +24,7 @@ /* Defines represented in configure.ac ----------------------------- */ //#define BOOST_PERCNT /* enable extra precision for two % fields */ +//#define NOBOOST_MEMS /* disable extra precision for mem fields */ //#define NUMA_DISABLE /* disable summary area NUMA/Nodes display */ //#define OOMEM_ENABLE /* enable the SuSE out-of-memory additions */ //#define SIGNALS_LESS /* favor reduced signal load over response */ @@ -39,7 +40,6 @@ //#define INSP_OFFDEMO /* disable demo screens, issue msg instead */ //#define INSP_SAVEBUF /* preserve 'Insp_buf' contents in a file */ //#define INSP_SLIDE_1 /* when scrolling left/right don't move 8 */ -//#define NOBOOST_MEMS /* disable extra precision for mem fields */ //#define OFF_HST_HASH /* use BOTH qsort+bsrch vs. hashing scheme */ //#define OFF_STDIOLBF /* disable our own stdout _IOFBF override */ //#define PRETEND2_5_X /* pretend we're linux 2.5.x (for IO-wait) */