[ruby-announce] [ANN] sys-cpu 0.3.0

Daniel Berger <[email protected]> Tue, 01 Jul 2003 16:22:09 -0600
Newsgroups gmane.comp.lang.ruby.announce
Organization Qwest
Message-ID <[email protected]>
Hi all,

I'm happy to announce the release of sys-cpu.  Now with HP-UX support!

sys-cpu is an interface for determining information about the cpu(s) on 
a system.

Synopsis
========
require "sys/cpu"
include Sys

# HP-UX
puts "Mhz: " + CPU.cpu_freq.to_s
puts "Number of cpu's on this system: " + CPU.num_cpu.to_s
puts "Number of active cpu's: " + CPU.num_active_cpu.to_s
puts "Load averages: " + CPU.load_avg.join(", ")

Enjoy!

Dan