Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addChild (0.05 sec)

  1. cmd/data-usage-cache.go

    	if cycles <= 1 {
    		return cycles == 1
    	}
    	return uint32(xxhash.Sum64String(string(h))>>32)%(cycles) == cycle%cycles
    }
    
    // addChild will add a child based on its hash.
    // If it already exists it will not be added again.
    func (e *dataUsageEntry) addChild(hash dataUsageHash) {
    	if _, ok := e.Children[hash.Key()]; ok {
    		return
    	}
    	if e.Children == nil {
    		e.Children = make(dataUsageHashMap, 1)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  2. cmd/data-scanner.go

    				dst = &dataUsageEntry{Compacted: false}
    			}
    			if err := f.scanFolder(ctx, folder, dst); err != nil {
    				return
    			}
    			if !into.Compacted {
    				h := dataUsageHash(folder.name)
    				into.addChild(h)
    				// We scanned a folder, optionally send update.
    				f.updateCache.deleteRecursive(h)
    				f.updateCache.copyWithChildren(&f.newCache, h, folder.parent)
    				f.sendUpdate()
    			}
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.5K bytes
    - Viewed (0)
Back to top