Novell Home

CLIB: get server utilization - sample 1

From Developer Community

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.

Sample Code

#include <nit/nwenvrn.h>
#include <stdio.h>
#include <stdlib.h>

int main( void) {
   printf( "GetServerUtilization(): %u\n", GetServerUtilization());
   return EXIT_SUCCESS;
}

--Dmitry Mityugov

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.