Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for maxTime (0.25 sec)

  1. cmd/erasure-healing-common.go

    	// occurrences of elements.
    	for etag, count := range etagOccurrenceMap {
    		if count < maxima {
    			continue
    		}
    
    		// We are at or above maxima
    		if count > maxima {
    			maxima = count
    			latest = etag
    		}
    	}
    
    	// Return the collected common max time, with maxima
    	return latest, maxima
    }
    
    // commonTime returns a maximally occurring time from a list of time.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    	}
    
    	// Read Part info for all parts
    	partPath := pathJoin(uploadIDPath, fi.DataDir) + "/"
    	req := ReadMultipleReq{
    		Bucket:       minioMetaMultipartBucket,
    		Prefix:       partPath,
    		MaxSize:      1 << 20, // Each part should realistically not be > 1MiB.
    		MaxResults:   maxParts + 1,
    		MetadataOnly: true,
    	}
    
    	start := partNumberMarker + 1
    	end := start + maxParts
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		if ok1 || ok2 {
    			return ok1 && ok2
    		}
    		return x == y
    	}
    	for _, v := range vectors {
    		t.Run(path.Base(v.file), func(t *testing.T) {
    			const maxSize = 10 << 10 // 10KiB
    			buf := new(bytes.Buffer)
    			tw := NewWriter(iotest.TruncateWriter(buf, maxSize))
    
    			for i, tf := range v.tests {
    				switch tf := tf.(type) {
    				case testHeader:
    					err := tw.WriteHeader(&tf.hdr)
    					if !equalError(err, tf.wantErr) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. internal/bpool/bpool.go

    type BytePoolCap struct {
    	c    chan []byte
    	w    int
    	wcap int
    }
    
    // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
    // byte arrays sized based on width.
    func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) {
    	if capwidth > 0 && capwidth < 64 {
    		panic("buffer capped with smaller than 64 bytes is not supported")
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. cmd/metrics-resource.go

    			Value:          math.Round(rm.Avg*100) / 100,
    			VariableLabels: cloneMSS(rm.Labels),
    		})
    
    		maxName := MetricName(fmt.Sprintf("%s_max", name))
    		maxHelp := fmt.Sprintf("%s (max)", help)
    		metrics = append(metrics, MetricV2{
    			Description:    getResourceMetricDescription(subSys, maxName, maxHelp),
    			Value:          rm.Max,
    			VariableLabels: cloneMSS(rm.Labels),
    		})
    	}
    
    	return metrics
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  6. cmd/storage-datatypes_gen.go

    				z.Files[za0001], err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Files", za0001)
    					return
    				}
    			}
    		case "MaxSize":
    			z.MaxSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "MaxSize")
    				return
    			}
    		case "MetadataOnly":
    			z.MetadataOnly, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "MetadataOnly")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 127.5K bytes
    - Viewed (0)
  7. src/bytes/bytes_test.go

    }
    
    func BenchmarkEqualBothUnaligned(b *testing.B) {
    	sizes := []int{64, 4 << 10}
    	if !isRaceBuilder {
    		sizes = append(sizes, []int{4 << 20, 64 << 20}...)
    	}
    	maxSize := 2 * (sizes[len(sizes)-1] + 8)
    	if len(bmbuf) < maxSize {
    		bmbuf = make([]byte, maxSize)
    	}
    
    	for _, n := range sizes {
    		for _, off := range []int{0, 1, 4, 7} {
    			buf1 := bmbuf[off : off+n]
    			buf2Start := (len(bmbuf) / 2) + off
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  8. cmd/storage-datatypes.go

    	Prefix       string   // Shared prefix of all files. Can be empty. Will be joined to filename without modification.
    	Files        []string // Individual files to read.
    	MaxSize      int64    // Return error if size is exceed.
    	MetadataOnly bool     // Read as XL meta and truncate data.
    	AbortOn404   bool     // Stop reading after first file not found.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    				// We have already reported the error, return nil.
    				return nil
    			}
    			continue
    		}
    		diskHealthCheckOK(ctx, nil)
    		if req.MaxSize > 0 && int64(len(data)) > req.MaxSize {
    			r.Exists = true
    			r.Error = fmt.Sprintf("max size (%d) exceeded: %d", req.MaxSize, len(data))
    			select {
    			case <-ctx.Done():
    				return ctx.Err()
    			case resp <- r:
    				continue
    			}
    		}
    		found++
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top