Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
struct process *ps;
long int swapped, present, total;
long int biggest = 0, second_biggest;
- int count;
+ int count, processes = 0;
/*
* walk through all processes, find the one with most present
PAGE_TO_NICE(swapped), PAGE_TO_NICE_UNIT(swapped),
ps->pid, ps->name);
count++;
+ processes++;
}
if (count > 0) {
biggest = second_biggest;
goto restart;
}
+
+ printf("Total %d processes\n", processes);
}