diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
commit | 3b950e41896219c9d21f9bc13616bfc6333b345c (patch) | |
tree | 3d53d979f3fbfa92704071ee17bafcfb15002098 /htop.c | |
parent | b93e5c00b6cad873942a2709f990a0626d98e7be (diff) |
BSD related fixes:
* BUGFIX: Correct page size calculation for FreeBSD systems
(thanks to Andrew Paulsen)
* Allow compilation without PLPA on systems that don't support it
(thanks to Timothy Redaelli)
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -112,9 +112,11 @@ static void showHelp(ProcessList* pl) { mvaddstr(15, 0, " F9 k: kill process/tagged processes P: sort by CPU%"); mvaddstr(16, 0, " + [ F7: lower priority (+ nice) M: sort by MEM%"); mvaddstr(17, 0, " - ] F8: higher priority (root only) T: sort by TIME"); +#ifdef HAVE_PLPA if (pl->processorCount > 1) mvaddstr(18, 0, " a: set CPU affinity F4 I: invert sort order"); else +#endif mvaddstr(18, 0, " F4 I: invert sort order"); mvaddstr(19, 0, " F2 S: setup F6 >: select sort column"); mvaddstr(20, 0, " F1 h: show this help screen"); @@ -131,8 +133,10 @@ static void showHelp(ProcessList* pl) { mvaddstr(16, 0, " + [ F7"); mvaddstr(16,40, " M"); mvaddstr(17, 0, " - ] F8"); mvaddstr(17,40, " T"); mvaddstr(18,40, " F4 I"); +#if HAVE_PLPA if (pl->processorCount > 1) mvaddstr(18, 0, " a:"); +#endif mvaddstr(19, 0, " F2 S"); mvaddstr(19,40, " F6 >"); mvaddstr(20, 0, " F1 h"); mvaddstr(21, 0, " F10 q"); mvaddstr(21,40, " s"); @@ -630,6 +634,7 @@ int main(int argc, char** argv) { refreshTimeout = 0; break; } +#ifdef HAVE_PLPA case 'a': { if (pl->processorCount == 1) @@ -665,6 +670,7 @@ int main(int argc, char** argv) { refreshTimeout = 0; break; } +#endif case KEY_F(10): case 'q': quit = 1; |