mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
check return of topoErr
This commit is contained in:
parent
30bafafb24
commit
3fbd1ef76d
@ -224,6 +224,8 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
|
||||
int topoErr = hwloc_topology_init(&this->topology);
|
||||
if (topoErr == 0) {
|
||||
topoErr = hwloc_topology_load(this->topology);
|
||||
}
|
||||
if (topoErr == 0) {
|
||||
this->topologyOk = true;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user