diff options
Diffstat (limited to 'sys/vm/vm_meter.c')
-rw-r--r-- | sys/vm/vm_meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index d0283ba..3a31ad4 100644 --- a/sys/vm/vm_meter.c +++ b/sys/vm/vm_meter.c @@ -79,7 +79,7 @@ loadav(struct loadavg *avg) register struct proc *p; ALLPROC_LOCK(AP_SHARED); - for (nrun = 0, p = allproc.lh_first; p != 0; p = p->p_list.le_next) { + for (nrun = 0, p = LIST_FIRST(&allproc); p != 0; p = LIST_NEXT(p, p_list)) { switch (p->p_stat) { case SSLEEP: if (p->p_priority > PZERO || p->p_slptime != 0) |