Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for flattenChildrens (0.12 sec)

  1. cmd/data-usage.go

    						if root == nil {
    							// We dont have usage information for this bucket in this
    							// set, go to the next set
    							continue
    						}
    
    						for id, usageInfo := range cache.flattenChildrens(*root) {
    							prefix := decodeDirObject(strings.TrimPrefix(id, bucket+slashSeparator))
    							// decodeDirObject to avoid any __XLDIR__ objects
    							m[prefix] += uint64(usageInfo.Size)
    						}
    					}
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    func (h dataUsageHash) String() string {
    	return string(h)
    }
    
    // Key returns the key.
    func (h dataUsageHash) Key() string {
    	return string(h)
    }
    
    func (d *dataUsageCache) flattenChildrens(root dataUsageEntry) (m map[string]dataUsageEntry) {
    	m = make(map[string]dataUsageEntry)
    	for id := range root.Children {
    		e := d.Cache[id]
    		if len(e.Children) > 0 {
    			e = d.flatten(e)
    		}
    		m[id] = e
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top