erlang/otp — pull request #65 by dotsimon (2013-09-03 06:36:26+00:00)
Title: Fix broken cpu_sup:nprocs and others on Solaris 64-bit

The correct kstat datatype for nproc & avenrun_* is ui32, not
ulong. Under 64-bit OTP builds garbage was returned because the wrong
datatype was used.

This patch corrects the datatype. It also adds an additional check
in the test case for a slightly less insane return value.