Skip to content

Commit

Permalink
Fix indentation issue.
Browse files Browse the repository at this point in the history
Now it is more consistent with the rest of the code base.
  • Loading branch information
fraggerfox authored and BenBE committed Apr 27, 2021
1 parent e63a145 commit 39136a8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions netbsd/NetBSDProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,24 +210,24 @@ static void NetBSDProcessList_scanProcs(NetBSDProcessList* this) {
switch (kproc->p_realstat) {
case SIDL: proc->state = 'I'; break;
case SACTIVE:
// We only consider the first LWP with a one of the below states.
for (int j = 0; j < nlwps; j++) {
if (klwps) {
switch (klwps[j].l_stat) {
case LSONPROC: proc->state = 'P'; break;
case LSRUN: proc->state = 'R'; break;
case LSSLEEP: proc->state = 'S'; break;
case LSSTOP: proc->state = 'T'; break;
default: proc->state = '?';
// We only consider the first LWP with a one of the below states.
for (int j = 0; j < nlwps; j++) {
if (klwps) {
switch (klwps[j].l_stat) {
case LSONPROC: proc->state = 'P'; break;
case LSRUN: proc->state = 'R'; break;
case LSSLEEP: proc->state = 'S'; break;
case LSSTOP: proc->state = 'T'; break;
default: proc->state = '?';
}
if (proc->state != '?')
break;
} else {
proc->state = '?';
break;
}
if (proc->state != '?')
break;
} else {
proc->state = '?';
break;
}
}
break;
}
break;
case SSTOP: proc->state = 'T'; break;
case SZOMB: proc->state = 'Z'; break;
case SDEAD: proc->state = 'D'; break;
Expand Down

0 comments on commit 39136a8

Please sign in to comment.