Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for totalSizes (0.17 sec)

  1. cmd/endpoint-ellipses.go

    func getTotalSizes(argPatterns []ellipses.ArgPattern) []uint64 {
    	var totalSizes []uint64
    	for _, argPattern := range argPatterns {
    		var totalSize uint64 = 1
    		for _, p := range argPattern {
    			totalSize *= uint64(len(p.Seq))
    		}
    		totalSizes = append(totalSizes, totalSize)
    	}
    	return totalSizes
    }
    
    // Parses all arguments and returns an endpointSet which is a collection
    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)
  2. cmd/endpoint-ellipses_test.go

    func TestGetDivisibleSize(t *testing.T) {
    	testCases := []struct {
    		totalSizes []uint64
    		result     uint64
    	}{
    		{[]uint64{24, 32, 16}, 8},
    		{[]uint64{32, 8, 4}, 4},
    		{[]uint64{8, 8, 8}, 8},
    		{[]uint64{24}, 24},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotGCD := getDivisibleSize(testCase.totalSizes)
    			if testCase.result != gotGCD {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
  3. cmd/tier-last-day-stats.go

    	for i := range tierInfos {
    		lst, ok := l[tierInfos[i].Name]
    		if !ok {
    			continue
    		}
    		for hr, st := range lst.Bins {
    			tierInfos[i].DailyStats.Bins[hr] = madmin.TierStats{
    				TotalSize:   st.TotalSize,
    				NumVersions: st.NumVersions,
    				NumObjects:  st.NumObjects,
    			}
    		}
    		tierInfos[i].DailyStats.UpdatedAt = lst.UpdatedAt
    	}
    	return tierInfos
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. cmd/data-usage_test.go

    	getSize := func(item scannerItem) (sizeS sizeSummary, err error) {
    		if item.Typ&os.ModeDir == 0 {
    			var s os.FileInfo
    			s, err = os.Stat(item.Path)
    			if err != nil {
    				return
    			}
    			sizeS.totalSize = s.Size()
    			sizeS.versions++
    			return sizeS, nil
    		}
    		return
    	}
    
    	weSleep := func() bool { return false }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. cmd/data-usage-cache_gen.go

    					if err != nil {
    						err = msgp.WrapError(err, "Tiers", za0001)
    						return
    					}
    					switch msgp.UnsafeString(field) {
    					case "ts":
    						za0002.TotalSize, err = dc.ReadUint64()
    						if err != nil {
    							err = msgp.WrapError(err, "Tiers", za0001, "TotalSize")
    							return
    						}
    					case "nv":
    						za0002.NumVersions, err = dc.ReadInt()
    						if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 100.8K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    )
    
    // PoolDecommissionInfo currently decommissioning information
    type PoolDecommissionInfo struct {
    	StartTime   time.Time `json:"startTime" msg:"st"`
    	StartSize   int64     `json:"startSize" msg:"ss"`
    	TotalSize   int64     `json:"totalSize" msg:"ts"`
    	CurrentSize int64     `json:"currentSize" msg:"cs"`
    
    	Complete bool `json:"complete" msg:"cmp"`
    	Failed   bool `json:"failed" msg:"fl"`
    	Canceled bool `json:"canceled" msg:"cnl"`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  7. cmd/xl-storage.go

    			}
    
    			if sizeS.versions > 0 {
    				res["versions"] = strconv.FormatUint(sizeS.versions, 10)
    			}
    			res["size"] = strconv.FormatInt(sizeS.totalSize, 10)
    			for name, tier := range sizeS.tiers {
    				res["tier-size-"+name] = strconv.FormatUint(tier.TotalSize, 10)
    				res["tier-versions-"+name] = strconv.Itoa(tier.NumVersions)
    			}
    			if sizeS.failedCount > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. cmd/data-usage-utils.go

    	for tier, st := range dui.TierStats.Tiers {
    		metrics = append(metrics, MetricV2{
    			Description:    getClusterTransitionedBytesMD(),
    			Value:          float64(st.TotalSize),
    			VariableLabels: map[string]string{"tier": tier},
    		})
    		metrics = append(metrics, MetricV2{
    			Description:    getClusterTransitionedObjectsMD(),
    			Value:          float64(st.NumObjects),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    							task.event.StorageClass, task.objInfo.Bucket, task.objInfo.Name, task.objInfo.VersionID, err))
    					}
    				}
    			} else {
    				ts := tierStats{
    					TotalSize:   uint64(task.objInfo.Size),
    					NumVersions: 1,
    				}
    				if task.objInfo.IsLatest {
    					ts.NumObjects = 1
    				}
    				t.addLastDayStats(task.event.StorageClass, ts)
    			}
    			t.activeTasks.Add(-1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  10. cmd/object-api-datatypes.go

    	for k, v := range o.UserDefined {
    		cinfo.UserDefined[k] = v
    	}
    	return cinfo
    }
    
    func (o ObjectInfo) tierStats() tierStats {
    	ts := tierStats{
    		TotalSize:   uint64(o.Size),
    		NumVersions: 1,
    	}
    	// the current version of an object is accounted towards objects count
    	if o.IsLatest {
    		ts.NumObjects = 1
    	}
    	return ts
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top