|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Angelos D. Keromytis (angelos
cvs.openbsd.org)Date: Sun Jun 03 2001 - 01:46:48 CDT
CVSROOT: /cvs
Module name: src
Changes by: angelos
cvs.openbsd.org 2001/06/03 00:46:48
Modified files:
usr.bin/top : machine.c
Log message:
Use KERN_NPROCS to get the number of processes on the system, to
determine the amount of space we'll need to store the
information. The alternative, calling sysctl() with a NULL argument
for data, meant the kernel had to go through the process table.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]