Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 239 for calculated (0.53 sec)

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

         * This method calculates the appropriate delay for the current time
         * and applies it by sleeping the current thread.
         */
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        /**
         * Calculates the delay in milliseconds based on current time and configured rules.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Nov 23 12:34:02 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(testKey, leaseContext.getLeaseKey());
            assertEquals(testState, leaseContext.getLeaseState());
            assertEquals(0, leaseContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should calculate correct size")
        void testSize() {
            int expectedSize = 16 + 4 + 4 + 32; // header + name + padding + data
            assertEquals(expectedSize, leaseContext.size());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size8 without alignment")
            void testSize8NoAlignment() {
                assertEquals(8, ServerMessageBlock2.size8(8));
                assertEquals(16, ServerMessageBlock2.size8(9));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity());
                assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree());
            }
    
            @Test
            @DisplayName("Should calculate capacity correctly")
            void testCapacityCalculation() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[24];
                buffer[4] = 0x04; // sectPerAlloc = 4
                buffer[8] = 0x00;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

                result = null;
            } else if (!Files.exists(src.getPath())) {
                Files.deleteIfExists(target);
                result = "";
            } else {
                String current = ChecksumAlgorithmHelper.calculate(
                                src.getPath(), List.of(new Sha1ChecksumAlgorithmFactory()))
                        .get(Sha1ChecksumAlgorithmFactory.NAME);
                String existing = sourceState.get();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Nov 06 18:32:25 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(0, context.getSalt().length);
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 3, 5, 10 })
            @DisplayName("Should calculate size correctly for different hash algo counts")
            void testSizeCalculation(int hashAlgoCount) {
                // Arrange
                int[] hashAlgos = new int[hashAlgoCount];
                byte[] salt = new byte[16];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                        validCount++;
                    }
                }
    
                assertEquals(3, validCount);
                assertTrue(offset > 0);
            }
    
            @Test
            @DisplayName("Should calculate combined size for multiple contexts")
            void testCombinedSizeCalculation() {
                CreateContextRequest[] contexts = new CreateContextRequest[5];
                int[] expectedSizes = { 16, 24, 32, 40, 48 };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. docs/erasure/storage-class/README.md

    |               16 |              13 |                 3 |                1.23 |
    |               16 |              14 |                 2 |                1.14 |
    
    You can calculate _approximate_ storage usage ratio using the formula - total drives (N) / data drives (D).
    
    ### Allowed values for STANDARD storage class
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java

    import org.apache.maven.project.MavenProject;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * <p>
     * Calculates the task segments in the build
     * </p>
     * <strong>NOTE:</strong> This class is not part of any public api and can be changed or deleted without prior notice.
     *
     * @since 3.0
     */
    @Named
    @Singleton
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Dec 13 23:07:01 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/AllocInfoTest.java

                // When & Then
                assertEquals(Long.MIN_VALUE, allocInfo.getCapacity());
                assertEquals(Long.MIN_VALUE, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should calculate used space correctly")
            void shouldCalculateUsedSpaceCorrectly() {
                // Given
                long capacity = 1024L * 1024L * 1024L * 100L; // 100GB
                long free = 1024L * 1024L * 1024L * 40L; // 40GB
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top