mirror of https://github.com/xzeldon/htop.git
Linux: fix crash in LXD
This commit is contained in:
parent
a2ca7583a9
commit
3f0c172a60
|
@ -188,7 +188,7 @@ static void LinuxProcessList_updateCPUcount(ProcessList* super) {
|
||||||
|
|
||||||
const struct dirent* entry;
|
const struct dirent* entry;
|
||||||
while ((entry = readdir(dir)) != NULL) {
|
while ((entry = readdir(dir)) != NULL) {
|
||||||
if (entry->d_type != DT_DIR)
|
if (entry->d_type != DT_DIR && entry->d_type != DT_UNKNOWN)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!String_startsWith(entry->d_name, "cpu"))
|
if (!String_startsWith(entry->d_name, "cpu"))
|
||||||
|
|
Loading…
Reference in New Issue