PHP Classes > In-House PHP Classes > CPU Load Reader


CPU Load Reader
Calculate your CPU load under Linux
GZipped Archive
Download (9KB)

This small script calculates your current CPU load to display on your website.

The CPU load information is retrieved from /proc/stat. Note that CPU load is the actual load on the CPU (in percent), and is not the same thing as load average (which is based on the number of processes currently running).

This script returns the User/Nice/System mode loads, the CPU load percentage, and the Idle load percentage.

Obviously, this script requires Linux, and will not function under Windows.

Downloads: 4911
Added: Dec 13, 2005 11:48 PM
Last updated: Dec 13, 2005 11:48 PM
feedme@yenc32.com