Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getDailyAllTierStats (0.47 sec)

  1. cmd/bucket-lifecycle.go

    	defer t.lastDayMu.Unlock()
    
    	if _, ok := t.lastDayStats[tier]; !ok {
    		t.lastDayStats[tier] = &lastDayTierStats{}
    	}
    	t.lastDayStats[tier].addStats(ts)
    }
    
    func (t *transitionState) getDailyAllTierStats() DailyAllTierStats {
    	t.lastDayMu.RLock()
    	defer t.lastDayMu.RUnlock()
    
    	res := make(DailyAllTierStats, len(t.lastDayStats))
    	for tier, st := range t.lastDayStats {
    		res[tier] = st.clone()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  2. cmd/notification.go

    		go func(index int) {
    			defer wg.Done()
    			lastDayStats[index], errs[index] = sys.peerClients[index].GetLastDayTierStats(ctx)
    		}(index)
    	}
    
    	wg.Wait()
    	merged := globalTransitionState.getDailyAllTierStats()
    	for i, stat := range lastDayStats {
    		if errs[i] != nil {
    			peersLogOnceIf(ctx, fmt.Errorf("failed to fetch last day tier stats: %w", errs[i]), sys.peerClients[i].host.String())
    			continue
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top