Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Osubtract (0.3 sec)

  1. cmd/bitrot.go

    	for left > 0 {
    		// Read expected hash...
    		h.Reset()
    		n, err := io.ReadFull(r, hashBuf)
    		if err != nil {
    			// Read's failed for object with right size, file is corrupt.
    			return err
    		}
    		// Subtract hash length..
    		left -= int64(n)
    		if left < shardSize {
    			shardSize = left
    		}
    
    		read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    		// console.Debugf("compacting %v, removing %d children\n", candidate, removing)
    
    		flat.Compacted = true
    		d.deleteRecursive(candidate)
    		d.replaceHashed(candidate, nil, *flat)
    
    		// Remove top entry and subtract removed children.
    		remove -= removing
    		leaves = leaves[1:]
    	}
    }
    
    // StringAll returns a detailed string representation of all entries in the cache.
    func (d *dataUsageCache) StringAll() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
Back to top