Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for calculations (0.06 sec)

  1. src/main/java/org/codelibs/fess/util/MemoryUtil.java

    import java.time.LocalDateTime;
    import java.time.ZonedDateTime;
    import java.util.Collection;
    import java.util.Date;
    import java.util.Map;
    import java.util.Objects;
    
    /**
     * Utility class for memory operations and size calculations.
     */
    public final class MemoryUtil {
        private MemoryUtil() {
        }
    
        /**
         * Gets a formatted memory usage log string.
         *
         * @return formatted memory usage information
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. cmd/warm-backend-minio.go

    	if objectSize > maxMultipartPutObjectSize {
    		err = errors.New("entity too large")
    		return partSize, err
    	}
    
    	configuredPartSize := minPartSize
    	// Use floats for part size for all calculations to avoid
    	// overflows during float64 to int64 conversions.
    	partSizeFlt := float64(objectSize / maxPartsCount)
    	partSizeFlt = math.Ceil(partSizeFlt/float64(configuredPartSize)) * float64(configuredPartSize)
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 4K bytes
    - Viewed (1)
  3. src/main/java/jcifs/pac/PacMac.java

         * This method implements the Microsoft variant of the Kerberos ARCFOUR-HMAC-MD5 checksum.
         *
         * @param keyusage the Kerberos key usage number for this operation
         * @param key the encryption key to use for MAC calculation
         * @param data the data to calculate the MAC for
         * @return the calculated MAC bytes
         * @throws GeneralSecurityException if cryptographic operations fail
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  4. cmd/signature-v4-utils.go

    		case "content-length":
    			// Signature-V4 spec excludes Content-Length from signed headers list for signature calculation.
    			// But some clients deviate from this rule. Hence we consider Content-Length for signature
    			// calculation to be compatible with such clients.
    			extractedSignedHeaders.Set(header, strconv.FormatInt(r.ContentLength, 10))
    		default:
    			return nil, ErrUnsignedHeaders
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Nov 25 17:10:22 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            assertEquals(100, info.sectPerAlloc);
            assertEquals(512, info.bytesPerSect);
            assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct");
            assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct");
        }
    
        /**
         * Tests the readDataWireFormat method with the SMB_QUERY_FS_SIZE_INFO information level.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

         */
        @Test
        void testFlatTrickyUrls() throws IOException {
            // parent references child with artifactId (which is not directory name)
            // then relative path calculation will fail during build from disk but success when calculated from repo
            try {
                // build from disk expected to fail
                testInheritance("tricky-flat-artifactId-urls", false);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java

            long weightY = comparator.getProjectWeight(ProjectDependencyGraphStub.Y);
            long weightZ = comparator.getProjectWeight(ProjectDependencyGraphStub.Z);
    
            // Verify the actual chain length calculation
            // Leaf nodes (no downstream dependencies)
            assertEquals(1L, weightX, "Project X should have weight 1 (1 + 0)");
            assertEquals(1L, weightY, "Project Y should have weight 1 (1 + 0)");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. internal/config/storageclass/help.go

    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         Optimize,
    			Description: `optimize parity calculation for standard storage class, set 'capacity' for capacity optimized (no additional parity)` + defaultHelpPostfix(Optimize),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         config.Comment,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Mar 26 22:06:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. internal/bucket/bandwidth/measurement.go

    		return
    	}
    
    	duration := endTime.Sub(m.startTime)
    
    	bytesSinceLastWindow := atomic.SwapUint64(&m.bytesSinceLastWindow, 0)
    
    	if m.expMovingAvg == 0 {
    		// Should address initial calculation and should be fine for resuming from 0
    		m.expMovingAvg = float64(bytesSinceLastWindow) / duration.Seconds()
    		return
    	}
    
    	increment := float64(bytesSinceLastWindow) / duration.Seconds()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Jun 03 20:41:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            assertEquals(8, emptyContext.size()); // Minimum size
            assertFalse(emptyContext.supportsAlgorithm(CompressionNegotiateContext.COMPRESSION_LZ77));
        }
    
        @Test
        @DisplayName("Test context size calculation")
        public void testContextSize() {
            int expectedSize = 8 + (3 * 2); // Header + 3 algorithms * 2 bytes each
            assertEquals(expectedSize, context.size());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top