This sample shows how to determine the overall server utilization with GetServerUtilization(). Note that this function does not let you determine utilization of a single CPU in a multiprocessor system.
#include <nit/nwenvrn.h>
#include <stdio.h>
#include <stdlib.h>
int main( void) {
printf( "GetServerUtilization(): %u\n", GetServerUtilization());
return EXIT_SUCCESS;
}
© 2008 Novell, Inc. All Rights Reserved.