Hi all,
I’m happy to announce the first release of sys-cpu. This is an
extension that provides various tidbits of information about your
system’s cpu(s), including load average information.
For now, only Solaris is supported, but I plan to add support for Linux,
FreeBSD and Windows in the future. I may change the api slightly, so
I’m going to label it as “Beta” for now.
Synopsis:
require "sys/cpu"
include Sys
puts CPU.load_avg.join(", ")
puts CPU.model
puts CPU.status
The home page can be found at http://ruby-sysutils.sourceforge.net
Regards,
Dan