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