Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Uint64N (0.32 sec)

  1. cmd/data-scanner.go

    	debug bool
    }
    
    type sizeSummary struct {
    	totalSize       int64
    	versions        uint64
    	deleteMarkers   uint64
    	replicatedSize  int64
    	replicatedCount int64
    	pendingSize     int64
    	failedSize      int64
    	replicaSize     int64
    	replicaCount    int64
    	pendingCount    uint64
    	failedCount     uint64
    	replTargetStats map[string]replTargetSizeSummary
    	tiers           map[string]tierStats
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  2. cmd/handler-api.go

    			apiRequestsMaxPerNode = int(maxMem / uint64(maxSetDrives*blockSize+int(blockSizeV1*2+blockSizeV2*2)))
    		} else {
    			// ram_per_request is (1MiB+32KiB) * driveCount \
    			//    + 2 * 1MiB (default erasure block size v2)
    			apiRequestsMaxPerNode = int(maxMem / uint64(maxSetDrives*blockSize+int(blockSizeV2*2)))
    		}
    	} else {
    		apiRequestsMaxPerNode = cfg.RequestsMax
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    	deletes := make([]uint64, len(infos))
    	writes := make([]uint64, len(infos))
    	for index, di := range infos {
    		deletes[index] = di.Metrics.TotalDeletes
    		writes[index] = di.Metrics.TotalWrites
    	}
    
    	filter := func(list []uint64) (commonCount uint64) {
    		max := 0
    		signatureMap := map[uint64]int{}
    		for _, v := range list {
    			signatureMap[v]++
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. internal/auth/credentials.go

    // ExpToInt64 - convert input interface value to int64.
    func ExpToInt64(expI interface{}) (expAt int64, err error) {
    	switch exp := expI.(type) {
    	case string:
    		expAt, err = strconv.ParseInt(exp, 10, 64)
    	case float64:
    		expAt, err = int64(exp), nil
    	case int64:
    		expAt, err = exp, nil
    	case int:
    		expAt, err = int64(exp), nil
    	case uint64:
    		expAt, err = int64(exp), nil
    	case uint:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    type poolAvailableSpace struct {
    	Index      int
    	Available  uint64 // in bytes
    	MaxUsedPct int    // Used disk percentage of most filled disk, rounded down.
    }
    
    // TotalAvailable - total available space
    func (p serverPoolsAvailableSpace) TotalAvailable() uint64 {
    	total := uint64(0)
    	for _, z := range p {
    		total += z.Available
    	}
    	return total
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  6. cmd/endpoint-ellipses.go

    	setIndexes  [][]uint64 // All the sets.
    }
    
    // Supported set sizes this is used to find the optimal
    // single set size.
    var setSizes = []uint64{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
    
    // getDivisibleSize - returns a greatest common divisor of
    // all the ellipses sizes.
    func getDivisibleSize(totalSizes []uint64) (result uint64) {
    	gcd := func(x, y uint64) uint64 {
    		for y != 0 {
    			x, y = y, x%y
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. internal/event/name.go

    		}
    		return res
    	default:
    		return []Name{name}
    	}
    }
    
    // Mask returns the type as mask.
    // Compound "All" types are expanded.
    func (name Name) Mask() uint64 {
    	if name < objectSingleTypesEnd {
    		return 1 << (name - 1)
    	}
    	var mask uint64
    	for _, n := range name.Expand() {
    		mask |= 1 << (n - 1)
    	}
    	return mask
    }
    
    // String - returns string representation of event type.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/metrics-v3-cluster-iam.go

    	lastSyncTime := atomic.LoadUint64(&globalIAMSys.LastRefreshTimeUnixNano)
    	if lastSyncTime != 0 {
    		m.Set(sinceLastSyncMillis, float64((uint64(time.Now().UnixNano())-lastSyncTime)/uint64(time.Millisecond)))
    	}
    	m.Set(syncFailures, float64(atomic.LoadUint64(&globalIAMSys.TotalRefreshFailures)))
    	m.Set(syncSuccesses, float64(atomic.LoadUint64(&globalIAMSys.TotalRefreshSuccesses)))
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 08:20:42 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. cmd/httprange.go

    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    // GetLength - get length of range
    func (h *HTTPRangeSpec) GetLength(resourceSize int64) (rangeLength int64, err error) {
    	switch {
    	case resourceSize < 0:
    		return 0, errors.New("Resource size cannot be negative")
    
    	case h == nil:
    		rangeLength = resourceSize
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. cmd/httprange_test.go

    package cmd
    
    import (
    	"testing"
    )
    
    func TestHTTPRequestRangeSpec(t *testing.T) {
    	resourceSize := int64(10)
    	validRangeSpecs := []struct {
    		spec                 string
    		expOffset, expLength int64
    	}{
    		{"bytes=0-", 0, 10},
    		{"bytes=1-", 1, 9},
    		{"bytes=0-9", 0, 10},
    		{"bytes=1-10", 1, 9},
    		{"bytes=1-1", 1, 1},
    		{"bytes=2-5", 2, 4},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top