Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for calculate (0.07 sec)

  1. cmd/utils.go

    func isMaxPartID(partID int) bool {
    	return partID > globalMaxPartID
    }
    
    // profilerWrapper is created because pkg/profiler doesn't
    // provide any API to calculate the profiler file path in the
    // disk since the name of this latter is randomly generated.
    type profilerWrapper struct {
    	// Profile recorded at start of benchmark.
    	records map[string][]byte
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  2. lib/fips140/v1.0.0.zip

    func(v, x, y Element) bool { x1, y1, v1 := x, y, Element{} // Calculate a reference f(x, y) without aliasing. if out := f(&v, &x, &y); out != &v && isInBounds(out) { return false } // Test aliasing the first argument and the receiver. v1 = x if out := f(&v1, &v1, &y); out != &v1 || v1 != v { return false } // Test aliasing the second argument and the receiver. v1 = y if out := f(&v1, &x, &v1); out != &v1 || v1 != v { return false } // Calculate a reference f(x, x) without aliasing. if out := f(&v, &x,...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
  3. cmd/encryption-v1.go

    	// because off is validated.
    
    	sseDAREEncPackageBlockSize := int64(SSEDAREPackageBlockSize + SSEDAREPackageMetaSize)
    	startPkgNum := (off - cumulativeSum) / SSEDAREPackageBlockSize
    
    	// Now we can calculate the number of bytes to skip
    	skipLen = (off - cumulativeSum) % SSEDAREPackageBlockSize
    
    	encOff = encCumulativeSum + startPkgNum*sseDAREEncPackageBlockSize
    	// Locate the part containing the end of the required range
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
  4. cmd/erasure-object_test.go

    		}
    
    		h := md5.New()
    		h.Write(testCase.content)
    		expectedHash := h.Sum(nil)
    
    		h.Reset()
    		_, err = io.Copy(h, gr)
    		if err != nil {
    			t.Fatalf("Test %d: Failed to calculate md5sum of the object: %v", i+1, err)
    		}
    		gr.Close()
    		foundHash := h.Sum(nil)
    
    		if !bytes.Equal(foundHash, expectedHash) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 38.3K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    			// we are creating a new object at this point, even
    			// if source and destination are same objects.
    			if !srcInfo.keyRotation {
    				srcInfo.metadataOnly = false
    			}
    		}
    
    		// Calculate the size of the target object
    		var targetSize int64
    
    		switch {
    		case isDstCompressed:
    			targetSize = -1
    		case !isSourceEncrypted && !isTargetEncrypted:
    			targetSize, _ = srcInfo.GetActualSize()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    			deleteMarkers = madmin.DeleteMarkers{Error: err.Error()}
    			usage = madmin.Usage{Error: err.Error()}
    		}
    
    		// Fetching the backend information
    		backendInfo := objectAPI.BackendInfo()
    		// Calculate the number of online/offline disks of all nodes
    		var allDisks []madmin.Disk
    		for _, s := range servers {
    			allDisks = append(allDisks, s.Disks...)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    	}
    
    	// Get start part index and offset.
    	partIndex, partOffset, err := fi.ObjectToPartOffset(ctx, startOffset)
    	if err != nil {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Calculate endOffset according to length
    	endOffset := startOffset
    	if length > 0 {
    		endOffset += length - 1
    	}
    
    	// Get last part index to read given length.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

                throw exception;
            }
        }
    
        /**
         * Calculates the limit document number based on total, percentage, and number.
         * @param total The total number of documents.
         * @param limitPercentage The limit percentage.
         * @param limitNumber The limit number.
         * @return The calculated limit document number.
         */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. docs/debugging/xl-meta/main.go

    						for idx, sh := range parityData {
    							calculated := splitData[idx]
    							if !bytes.Equal(calculated, sh) {
    								off := 0
    								for i, v := range sh {
    									if v != calculated[i] {
    										off = i
    										break
    									}
    								}
    								calculated := calculated[off:]
    								inFile := sh[off:]
    								extra := ""
    								if len(calculated) != len(inFile) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  10. cmd/object-api-putobject_test.go

    		if actualErr == nil {
    			// Asserting whether the md5 output is correct.
    			if expectedMD5, ok := testCase.inputMeta["etag"]; ok && expectedMD5 != objInfo.ETag {
    				t.Errorf("Test %d: %s: Calculated Md5 different from the actual one %s.", i, instanceType, objInfo.ETag)
    				continue
    			}
    		}
    	}
    }
    
    // Wrapper for calling PutObject tests for both Erasure multiple disks case
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top