Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for calibrateCpuLoad (0.07 seconds)

  1. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         */
        public boolean calibrateCpuLoad() {
            return calibrateCpuLoad(0L);
        }
    
        /**
         * Calibrates the CPU load with a timeout.
         *
         * @param timeoutInMillis The timeout in milliseconds.
         * @return true if the CPU load is within the acceptable range, false otherwise.
         */
        public boolean calibrateCpuLoad(final long timeoutInMillis) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            systemHelper.setSystemCpuCheckInterval(100L);
            final boolean result = systemHelper.calibrateCpuLoad(1L);
            assertTrue(result || !result); // Can be either depending on CPU load
        }
    
        @Test
        public void test_calibrateCpuLoad_zeroTimeout() {
            final boolean result = systemHelper.calibrateCpuLoad(0L);
            assertTrue(result);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
Back to Top