void gui_load() { debug_start(); pnd_app_get_list(); cfg_gui_read(); gui_load_skin(); if ( ! ( nh = pnd_notify_init() ) ) { debug_error ( "PND INOTIFY init problem spotted\n" ); } if ( ! ( nh2 = pnd_dbusnotify_init() ) ) { debug_error ( "PND DBUSINOTIFY init problem spotted\n" ); } initStatusCalls(); cpuUsage(); getCPULoad(); set_cpu( pmenu->cpu_mhz ); debug_end(); }
SWIGEXPORT jfloat JNICALL Java_com_dsp_1faust_dsp_1faustJNI_getCPULoad(JNIEnv *jenv, jclass jcls) { jfloat jresult = 0 ; float result; (void)jenv; (void)jcls; result = getCPULoad(); jresult = (jfloat)result; return jresult; }