Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for totalSizes (0.24 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 14.8K 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 15.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        this.map = map;
      }
    
      /** Used during deserialization only. */
      final void setMap(Map<K, Collection<V>> map) {
        this.map = map;
        totalSize = 0;
        for (Collection<V> values : map.values()) {
          checkArgument(!values.isEmpty());
          totalSize += values.size();
        }
      }
    
      /**
       * Creates an unmodifiable, empty collection of values.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        this.map = map;
      }
    
      /** Used during deserialization only. */
      final void setMap(Map<K, Collection<V>> map) {
        this.map = map;
        totalSize = 0;
        for (Collection<V> values : map.values()) {
          checkArgument(!values.isEmpty());
          totalSize += values.size();
        }
      }
    
      /**
       * Creates an unmodifiable, empty collection of values.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
  5. internal/ioutil/ioutil.go

    // the file opened for writes with syscall.O_DIRECT flag.
    func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, file *os.File) (int64, error) {
    	if totalSize == 0 {
    		return 0, nil
    	}
    
    	var written int64
    	for {
    		buf := alignedBuf
    		if totalSize > 0 {
    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    		}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils.go

    		return 0, errPartSizeIndex
    	}
    	if totalSize == -1 {
    		return -1, nil
    	}
    	if totalSize > 0 {
    		// Compute the total count of parts
    		partsCount := totalSize/partSize + 1
    		// Return the part's size
    		switch {
    		case int64(partIndex) < partsCount:
    			currPartSize = partSize
    		case int64(partIndex) == partsCount:
    			// Size of last part
    			currPartSize = totalSize % partSize
    		default:
    			currPartSize = 0
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. cmd/data-usage-cache.go

    	for tier, st := range ats.Tiers {
    		stats[tier] = madmin.TierStats{
    			TotalSize:   st.TotalSize,
    			NumVersions: st.NumVersions,
    			NumObjects:  st.NumObjects,
    		}
    	}
    	return
    }
    
    // tierStats holds per-tier stats of a remote tier.
    type tierStats struct {
    	TotalSize   uint64 `msg:"ts"`
    	NumVersions int    `msg:"nv"`
    	NumObjects  int    `msg:"no"`
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  8. finisher_api.go

    		batch        int
    	)
    
    	// user specified offset or limit
    	var totalSize int
    	if c, ok := tx.Statement.Clauses["LIMIT"]; ok {
    		if limit, ok := c.Expression.(clause.Limit); ok {
    			if limit.Limit != nil {
    				totalSize = *limit.Limit
    			}
    
    			if totalSize > 0 && batchSize > totalSize {
    				batchSize = totalSize
    			}
    
    			// reset to offset to 0 in next batch
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  9. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom_gen.go

    				return
    			}
    		case "ss":
    			z.StartSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "StartSize")
    				return
    			}
    		case "ts":
    			z.TotalSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "TotalSize")
    				return
    			}
    		case "cs":
    			z.CurrentSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "CurrentSize")
    				return
    			}
    		case "cmp":
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 04 21:02:54 GMT 2022
    - 26.7K bytes
    - Viewed (0)
Back to top