Commit b9934ffa authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

minor style tweak

Showing with 4 additions and 3 deletions
+4 -3
......@@ -234,12 +234,13 @@ void ProcessList_sort(ProcessList* this) {
while (l < r) {
int c = (l + r) / 2;
pid_t pid = ((Process*)(Vector_get(this->processes, c)))->pid;
if (ppid == pid)
if (ppid == pid) {
break;
else if (ppid < pid)
} else if (ppid < pid) {
r = c;
else
} else {
l = c + 1;
}
}
// If parent not found, then construct the tree with this root
if (l >= r) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment