2.11BSD/src/new/la/la.c

Compare this file to the similar file:
Show the results in this format:

/*
 * la: print the load average.
 */
main()
{
	double vec[3];

	if (getloadavg(vec, 3) < 0) {
		perror("la: getloadavg");
		exit(1);
	}
	printf("load %.02f %.02f %.02f\n", vec[0], vec[1], vec[2]);
	exit(0);
}