Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for asTimedAction (0.09 sec)

  1. cmd/last-minute.go

    // Avg returns average time spent.
    func (a AccElem) avg() time.Duration {
    	if a.N >= 1 && a.Total > 0 {
    		return time.Duration(a.Total / a.N)
    	}
    	return 0
    }
    
    // asTimedAction returns the element as a madmin.TimedAction.
    func (a AccElem) asTimedAction() madmin.TimedAction {
    	return madmin.TimedAction{AccTime: uint64(a.Total), Count: uint64(a.N), Bytes: uint64(a.Size)}
    }
    
    // lastMinuteLatency keeps track of last minute latency.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 05 17:40:45 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. cmd/os-instrumented.go

    	m.LastMinute.Operations = make(map[string]madmin.TimedAction, osMetricLast)
    	for i := osMetric(0); i < osMetricLast; i++ {
    		lm := o.latency[i].total()
    		if lm.N > 0 {
    			m.LastMinute.Operations[i.String()] = lm.asTimedAction()
    		}
    	}
    	if len(m.LastMinute.Operations) == 0 {
    		m.LastMinute.Operations = nil
    	}
    
    	return m
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. cmd/erasure.go

    				TotalWaiting:            info.Metrics.TotalWaiting,
    			}
    			for k, v := range info.Metrics.LastMinute {
    				if v.N > 0 {
    					di.Metrics.LastMinute[k] = v.asTimedAction()
    				}
    			}
    			for k, v := range info.Metrics.APICalls {
    				di.Metrics.APICalls[k] = v
    			}
    			if info.Total > 0 {
    				di.Utilization = float64(info.Used / info.Total * 100)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. cmd/data-scanner-metric.go

    	for i := scannerMetric(0); i < scannerMetricLastRealtime; i++ {
    		lm := p.lastMinute(i)
    		if lm.N > 0 {
    			m.LastMinute.Actions[i.String()] = lm.asTimedAction()
    		}
    	}
    	if len(m.LastMinute.Actions) == 0 {
    		m.LastMinute.Actions = nil
    	}
    
    	// ILM
    	m.LifeTimeILM = make(map[string]uint64)
    	for i := lifecycle.NoneAction + 1; i < lifecycle.ActionCount; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top