mirror of https://github.com/xzeldon/htop.git
parent
96858744b5
commit
4716a9857b
|
@ -741,8 +741,9 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P
|
||||||
}
|
}
|
||||||
|
|
||||||
// Just skip all non-number directories.
|
// Just skip all non-number directories.
|
||||||
if (name[0] <= '0' || name[0] >= '9')
|
if (name[0] < '0' || name[0] > '9') {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// filename is a number: process directory
|
// filename is a number: process directory
|
||||||
int pid = atoi(name);
|
int pid = atoi(name);
|
||||||
|
|
Loading…
Reference in New Issue