Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for totalTime (0.45 sec)

  1. 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
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. 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]
    			}
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. cmd/endpoint-ellipses.go

    	if len(totalSizes) == 0 || len(args) == 0 {
    		return nil, errInvalidArgument
    	}
    
    	setIndexes = make([][]uint64, len(totalSizes))
    	for _, totalSize := range totalSizes {
    		// Check if totalSize has minimum range upto setSize
    		if totalSize < setSizes[0] || totalSize < setDriveCount {
    			msg := fmt.Sprintf("Incorrect number of endpoints provided %s", args)
    			return nil, config.ErrInvalidNumberOfErasureEndpoints(nil).Msg(msg)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. src/internal/fuzz/mem.go

    		if err != nil {
    			f.Close()
    			os.Remove(f.Name())
    		}
    	}()
    
    	// Resize it to the correct size.
    	totalSize := sharedMemSize(size)
    	if err := f.Truncate(int64(totalSize)); err != nil {
    		return nil, err
    	}
    
    	// Map the file into memory.
    	removeOnClose := true
    	return sharedMemMapFile(f, totalSize, removeOnClose)
    }
    
    // header returns a pointer to metadata within the shared memory region.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:44:27 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/net/mockserver_test.go

    		fn = conn.Read
    	case "w":
    		defer conn.Close()
    
    		fn = conn.Write
    	default:
    		log.Fatalf("unknown op %q", op)
    	}
    
    	var n int
    	for count := 0; count < totalSize; count += n {
    		if count+chunkSize > totalSize {
    			buf = buf[:totalSize-count]
    		}
    
    		var err error
    		if n, err = fn(buf); err != nil {
    			return
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. 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
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. pkg/volume/secret/secret.go

    			}
    			payload[ktp.Path] = fileProjection
    		}
    	}
    	return payload, nil
    }
    
    func totalSecretBytes(secret *v1.Secret) int {
    	totalSize := 0
    	for _, bytes := range secret.Data {
    		totalSize += len(bytes)
    	}
    
    	return totalSize
    }
    
    // secretVolumeUnmounter handles cleaning up secret volumes.
    type secretVolumeUnmounter struct {
    	*secretVolume
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go

    	}
    	return allErrs
    }
    
    func ValidateAnnotationsSize(annotations map[string]string) error {
    	var totalSize int64
    	for k, v := range annotations {
    		totalSize += (int64)(len(k)) + (int64)(len(v))
    	}
    	if totalSize > (int64)(TotalAnnotationSizeLimitB) {
    		return fmt.Errorf("annotations size %d is larger than limit %d", totalSize, TotalAnnotationSizeLimitB)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 12K bytes
    - Viewed (0)
  10. pkg/volume/configmap/configmap.go

    		}
    	}
    
    	return payload, nil
    }
    
    func totalBytes(configMap *v1.ConfigMap) int {
    	totalSize := 0
    	for _, value := range configMap.Data {
    		totalSize += len(value)
    	}
    	for _, value := range configMap.BinaryData {
    		totalSize += len(value)
    	}
    
    	return totalSize
    }
    
    // configMapVolumeUnmounter handles cleaning up configMap volumes.
    type configMapVolumeUnmounter struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top