Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ObjectsVersionCountIntervals (0.24 sec)

  1. cmd/object-api-datatypes.go

    	{"BETWEEN_128_MB_AND_512_MB", humanize.MiByte * 128, humanize.MiByte*512 - 1},
    	{"GREATER_THAN_512_MB", humanize.MiByte * 512, math.MaxInt64},
    }
    
    // ObjectsVersionCountIntervals is the list of all intervals
    // of object version count to be included in objects histogram.
    var ObjectsVersionCountIntervals = [dataUsageVersionLen]objectHistogramInterval{
    	{"UNVERSIONED", 0, 0},
    	{"SINGLE_VERSION", 1, 1},
    	{"BETWEEN_2_AND_10", 2, 9},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    }
    
    // add a version count to the histogram.
    func (h *versionsHistogram) add(versions uint64) {
    	// Fetch the histogram interval corresponding
    	// to the passed object size.
    	for i, interval := range ObjectsVersionCountIntervals[:] {
    		if versions >= uint64(interval.start) && versions <= uint64(interval.end) {
    			h[i]++
    			break
    		}
    	}
    }
    
    // toMap returns the map to a map[string]uint64.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 10 14:49:50 UTC 2024
    - 42.8K bytes
    - Viewed (0)
Back to top