1 /* $OpenBSD: top.local.h,v 1.5 2018/09/22 17:10:28 millert Exp $ */ 2 3 /* 4 * Top - a top users display for Berkeley Unix 5 * 6 * Definitions for things that might vary between installations. 7 */ 8 9 /* 10 * The space command forces an immediate update. Sometimes, on loaded 11 * systems, this update will take a significant period of time (because all 12 * the output is buffered). So, if the short-term load average is above 13 * "LoadMax", then top will put the cursor home immediately after the space 14 * is pressed before the next update is attempted. This serves as a visual 15 * acknowledgement of the command. On Suns, "LoadMax" will get multiplied by 16 * "FSCALE" before being compared to avenrun[0]. Therefore, "LoadMax" 17 * should always be specified as a floating point number. 18 */ 19 #ifndef LoadMax 20 #define LoadMax 5.0 21 #endif 22 23 /* 24 * "Nominal_TOPN" is used as the default TOPN when Default_TOPN is Infinity 25 * and the output is a dumb terminal. If we didn't do this, then 26 * installations who use a default TOPN of Infinity will get every 27 * process in the system when running top on a dumb terminal (or redirected 28 * to a file). Note that Nominal_TOPN is a default: it can still be 29 * overridden on the command line, even with the value "infinity". 30 */ 31 #ifndef Nominal_TOPN 32 #define Nominal_TOPN 18 33 #endif 34 35 #ifndef Default_TOPN 36 #define Default_TOPN -1 37 #endif 38 39 #ifndef Default_DELAY 40 #define Default_DELAY 5 41 #endif 42