Send rubynet-announce mailing list submissions to
	rubynet-announce / lists.rubynet.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.rubynet.org/lists/listinfo/rubynet-announce
or, via email, send a message with subject or body 'help' to
	rubynet-announce-request / lists.rubynet.org

You can reach the person managing the list at
	rubynet-announce-owner / lists.rubynet.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rubynet-announce digest..."


Today's Topics:

   1. [ANN] sys-cpu 0.3.0 (Daniel Berger)


----------------------------------------------------------------------

Message: 1
Date: Tue, 01 Jul 2003 16:22:09 -0600
From: Daniel Berger <djberge / qwest.com>
Subject: [ruby-announce] [ANN] sys-cpu 0.3.0
To: rubynet-announce <rubynet-announce / lists.rubynet.org>
Message-ID: <3F020991.30300 / qwest.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

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


------------------------------

_______________________________________________
rubynet-announce mailing list
announce / rubynet.org
http://lists.rubynet.org/lists/listinfo/rubynet-announce

End of rubynet-announce Digest, Vol 5, Issue 1
**********************************************