games/dm/dm.c
/*
 * load --
 *	return 15 minute load average
 */
load
return 15 minute load average
load return 15 minute load average
double
load()
{
	double avenrun[3];
	if (getloadavg(avenrun, sizeof(avenrun)/sizeof(avenrun[0])) < 0) {
		fputs("dm: getloadavg() failed.\n", stderr);
		exit(1);
	}
	return(avenrun[2]);
}
double load ( ) { double avenrun [ 3 ] ; if ( getloadavg ( avenrun , sizeof ( avenrun ) / sizeof ( avenrun [ 0 ] ) ) < 0 ) { fputs ( " \n " , stderr ) ; exit ( 1 ) ; } return ( avenrun [ 2 ] ) ; }
load
      return 15 minute load average
load return 15 minute load average