s/rbsigar/sigar/g

This commit is contained in:
Doug MacEachern 2010-01-17 18:26:31 -08:00
parent 57513b2d0a
commit fd8274153c
15 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
sigar = Sigar.new

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
def format_size(size)
return Sigar.format_size(size * 1024)

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
sigar = Sigar.new
mem = sigar.mem

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
sigar = Sigar.new
iflist = sigar.net_interface_list

View File

@ -1,6 +1,6 @@
# Example illustrating the use of the optional logger.
require 'rbsigar'
require 'sigar'
require 'logger'
sigar = Sigar.new

View File

@ -1,6 +1,6 @@
# Example illustrating the collecting of network information.
require 'rbsigar'
require 'sigar'
sigar = Sigar.new

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
require 'socket'
#XXX this example is incomplete wrt:

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
def output(sigar, pid)
args = sigar.proc_args(pid)

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
def output(sigar, pid)
env = sigar.proc_env(pid)

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
def flags(flags)
f = ""

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
require 'rbconfig'
puts "Sigar version......." + Sigar::VERSION

View File

@ -1,4 +1,4 @@
require 'rbsigar'
require 'sigar'
def format_time(who)
return Time.at(who.time).strftime("%b %e %H:%M")

View File

@ -1,7 +1,7 @@
require 'mkmf'
require 'rbconfig'
extension_name = 'rbsigar'
extension_name = 'sigar'
print 'Ruby platform=' + RUBY_PLATFORM + "\n"

View File

@ -815,7 +815,7 @@ static void Init_rbsigar_version(VALUE rclass)
RB_SIGAR_DEFINE_CONST_STR("VERSION", sv->version);
}
void Init_rbsigar(void)
void Init_sigar(void)
{
VALUE rclass = rb_define_class("Sigar", rb_cObject);

View File

@ -1,5 +1,5 @@
require 'test/unit'
require 'rbsigar'
require 'sigar'
module Test::Unit::Assertions
def assert_gt_eq_zero(value, message)