JNIEXPORT void SIGAR_JNI(SigarLog_setLevel)
(JNIEnv *env, jclass classinstance, jobject sigar_obj, jint level)
{
    dSIGAR_VOID;

    sigar_log_level_set(sigar, level);
}
Esempio n. 2
0
static VALUE rb_sigar_set_log_level(VALUE obj, VALUE level)
{
    SIGAR_GET;

    sigar_log_level_set(sigar, NUM2INT(level));

    return obj;
}