src/solaris/native/sun/management/LinuxOperatingSystem.c

Print this page

        

*** 33,43 **** #include <sys/types.h> #include <dirent.h> #include <stdlib.h> #include <dlfcn.h> #include <pthread.h> ! #include "com_sun_management_UnixOperatingSystem.h" struct ticks { uint64_t used; uint64_t usedKernel; uint64_t total; --- 33,43 ---- #include <sys/types.h> #include <dirent.h> #include <stdlib.h> #include <dlfcn.h> #include <pthread.h> ! #include "sun_management_OperatingSystemImpl.h" struct ticks { uint64_t used; uint64_t usedKernel; uint64_t total;
*** 308,318 **** } return u + s; } JNIEXPORT jdouble JNICALL ! Java_com_sun_management_UnixOperatingSystem_getSystemCpuLoad (JNIEnv *env, jobject dummy) { if(perfInit() == 0) { return get_cpu_load(-1); } else { --- 308,318 ---- } return u + s; } JNIEXPORT jdouble JNICALL ! Java_sun_management_OperatingSystemImpl_getSystemCpuLoad (JNIEnv *env, jobject dummy) { if(perfInit() == 0) { return get_cpu_load(-1); } else {
*** 319,329 **** return -1.0; } } JNIEXPORT jdouble JNICALL ! Java_com_sun_management_UnixOperatingSystem_getProcessCpuLoad (JNIEnv *env, jobject dummy) { if(perfInit() == 0) { return get_process_load(); } else { --- 319,329 ---- return -1.0; } } JNIEXPORT jdouble JNICALL ! Java_sun_management_OperatingSystemImpl_getProcessCpuLoad (JNIEnv *env, jobject dummy) { if(perfInit() == 0) { return get_process_load(); } else {