diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:01:17 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:01:17 +0200 |
commit | adefe52ce2ad43c442c0b40bfe637e238e454246 (patch) | |
tree | 1be4d43e90ea340992e3068c1348196a6e4b145c /ProcessList.c | |
parent | 0063095c92e95190a0376ad245509345e5b690ed (diff) | |
parent | 8c82a38002ce09db2a0b83dab8b598cf1ab0596c (diff) | |
download | debian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.tar.gz debian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.tar.bz2 debian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.zip |
Merge tag 'upstream/2.0.1'
Upstream version 2.0.1
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ProcessList.c b/ProcessList.c index 5f5151f..a49b4f1 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -22,6 +22,10 @@ in the source distribution for its full text. #include "Process.h" #include "Settings.h" +#ifdef HAVE_LIBHWLOC +#include <hwloc.h> +#endif + #ifndef MAX_NAME #define MAX_NAME 128 #endif @@ -104,6 +108,11 @@ ProcessList* ProcessList_init(ProcessList* this, ObjectClass* klass, UsersTable* } void ProcessList_done(ProcessList* this) { +#ifdef HAVE_LIBHWLOC + if (this->topologyOk) { + hwloc_topology_destroy(this->topology); + } +#endif Hashtable_delete(this->processTable); Vector_delete(this->processes); Vector_delete(this->processes2); @@ -307,6 +316,7 @@ void ProcessList_scan(ProcessList* this) { for (int i = 0; i < Vector_size(this->processes); i++) { Process* p = (Process*) Vector_get(this->processes, i); p->updated = false; + p->show = true; } this->totalTasks = 0; |