question: public static int cpu ( ) { int cpuUsage = JDK_SYSTEM_RESOURCES . cpu ( ) ; if ( cpuUsage < 0 && isLinux ( ) ) { cpuUsage = LINUX_SYSTEM_RESOURCES . cpu ( ) ; } return cpuUsage ; }
target:  Get CPU load in percents (1-100). Return -1 when fails getting CPU load. 