summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-02-14 19:57:29 -0200
committerHisham <hisham@gobolinux.org>2016-02-14 19:57:29 -0200
commit474d26cea8ad31e77722f81ba801b2c29783e947 (patch)
treeedb8bb8928e96a04dc62ce42a23a92a32c7c2fb5 /Action.c
parent35657208d7dc6262c477f5d9d5626dba5d8dc05c (diff)
Portable affinity using hwloc
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Action.c b/Action.c
index 4ef06f48..50dfde9e 100644
--- a/Action.c
+++ b/Action.c
@@ -271,7 +271,7 @@ static Htop_Reaction actionQuit() {
static Htop_Reaction actionSetAffinity(State* st) {
if (st->pl->cpuCount == 1)
return HTOP_OK;
-#if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY)
+#if (HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY)
Panel* panel = st->panel;
Process* p = (Process*) Panel_getSelected(panel);
@@ -405,7 +405,7 @@ static struct { const char* key; const char* info; } helpRight[] = {
{ .key = " F9 k: ", .info = "kill process/tagged processes" },
{ .key = " F7 ]: ", .info = "higher priority (root only)" },
{ .key = " F8 [: ", .info = "lower priority (+ nice)" },
-#if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY)
+#if (HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY)
{ .key = " a: ", .info = "set CPU affinity" },
#endif
{ .key = " e: ", .info = "show process environment" },

© 2014-2024 Faster IT GmbH | imprint | privacy policy