mirror of https://github.com/xzeldon/htop.git
minor style tweak
This commit is contained in:
parent
65ec0bd6a6
commit
b9934ffa08
|
@ -234,13 +234,14 @@ void ProcessList_sort(ProcessList* this) {
|
||||||
while (l < r) {
|
while (l < r) {
|
||||||
int c = (l + r) / 2;
|
int c = (l + r) / 2;
|
||||||
pid_t pid = ((Process*)(Vector_get(this->processes, c)))->pid;
|
pid_t pid = ((Process*)(Vector_get(this->processes, c)))->pid;
|
||||||
if (ppid == pid)
|
if (ppid == pid) {
|
||||||
break;
|
break;
|
||||||
else if (ppid < pid)
|
} else if (ppid < pid) {
|
||||||
r = c;
|
r = c;
|
||||||
else
|
} else {
|
||||||
l = c + 1;
|
l = c + 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// If parent not found, then construct the tree with this root
|
// If parent not found, then construct the tree with this root
|
||||||
if (l >= r) {
|
if (l >= r) {
|
||||||
process = (Process*)(Vector_take(this->processes, i));
|
process = (Process*)(Vector_take(this->processes, i));
|
||||||
|
|
Loading…
Reference in New Issue