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

Print this page

        

@@ -33,11 +33,11 @@
 #include <sys/types.h>
 #include <dirent.h>
 #include <stdlib.h>
 #include <dlfcn.h>
 #include <pthread.h>
-#include "com_sun_management_UnixOperatingSystem.h"
+#include "sun_management_OperatingSystemImpl.h"
 
 struct ticks {
     uint64_t  used;
     uint64_t  usedKernel;
     uint64_t  total;

@@ -308,11 +308,11 @@
     }
     return u + s;
 }
 
 JNIEXPORT jdouble JNICALL
-Java_com_sun_management_UnixOperatingSystem_getSystemCpuLoad
+Java_sun_management_OperatingSystemImpl_getSystemCpuLoad
 (JNIEnv *env, jobject dummy)
 {
     if(perfInit() == 0) {
         return get_cpu_load(-1);
     } else {

@@ -319,11 +319,11 @@
         return -1.0;
     }
 }
 
 JNIEXPORT jdouble JNICALL
-Java_com_sun_management_UnixOperatingSystem_getProcessCpuLoad
+Java_sun_management_OperatingSystemImpl_getProcessCpuLoad
 (JNIEnv *env, jobject dummy)
 {
     if(perfInit() == 0) {
         return get_process_load();
     } else {