Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newSMA (0.07 sec)

  1. cmd/bucket-replication-metrics.go

    		Avg:     rx.Avg,
    		Peak:    peak,
    		N:       rx.N,
    		measure: rx.measure,
    	}
    }
    
    func newXferStats() *XferStats {
    	return &XferStats{
    		measure: newRateMeasurement(time.Now()),
    		sma:     newSMA(50),
    	}
    }
    
    func (rx *XferStats) String() string {
    	return fmt.Sprintf("curr=%f avg=%f, peak=%f", rx.curr(), rx.Avg, rx.Peak)
    }
    
    func (rx *XferStats) curr() float64 {
    	if rx.measure == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top