From b2dd835f7969ee0366f6b55a6f1be34506dc2f09 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 22 Dec 2009 19:46:49 -0800 Subject: [PATCH] add loadavg binding --- bindings/ruby/rbsigar.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/bindings/ruby/rbsigar.c b/bindings/ruby/rbsigar.c index 3b2c71cf..312dd7d2 100644 --- a/bindings/ruby/rbsigar.c +++ b/bindings/ruby/rbsigar.c @@ -242,6 +242,18 @@ static VALUE rb_sigar_new_intlist(int *data, int number) return av; } +static VALUE rb_sigar_new_doublelist(double *data, int number) +{ + int i; + VALUE av = rb_ary_new2(number); + + for (i=0; i