RAA - sys-cpu/0.4.0

sys-cpu / 0.4.0

Short description: Interface for cpu information
Category: Library/OS
Status: Usable
Created: 2003-02-04 17:23:59 GMT
Last update: 2003-09-19 04:25:44 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://ruby-sysutils.sourceforge.net
Download: http://prdownloads.sourceforge.net/ruby-sysutils/sys-cpu-0.4.0.tar.gz?download
License: Ruby's
Dependency:
None
Description:

Sys-CPU is an extension that provides various bits of information regarding your system's cpu(s).

Changes:
========
- Added MS Windows support
- Changed some method names. The "cpu" has been dropped from most method
names. See documentation for details.
- The state() and freq() methods (where supported) now assume a default
value of zero.
- More unit tests added.
- Fixed minor issue with test.rb for those without TestUnit installed.
- Fixed issue with linux.rb file being auto-installed on non-Linux platforms.
- Minor API change for the load_avg() method on HP-UX. It now accepts a
CPU number as an argument.

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

puts CPU.load_avg.join(",")
puts CPU.model
puts CPU.freq

# more fields, depending on platform

Versions: [0.6.1 (2009-01-04)] [0.6.0 (2007-04-26)] [0.5.5 (2006-11-18)] [0.5.4 (2006-07-12)] [0.5.3 (2006-05-04)] [0.5.2 (2005-06-25)] [0.5.1 (2005-05-05)] [0.5.0 (2004-06-28)] [0.4.0 (2003-09-19)]

Edit this project (for project owner)

back to RAA top