Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addSample (0.16 sec)

  1. cmd/bucket-replication-metrics.go

    	if rx.measure == nil {
    		rx.measure = newRateMeasurement(time.Now())
    	}
    	rx.measure.incrementBytes(uint64(sz))
    	rx.Curr = rx.measure.getExpMovingAvgBytesPerSecond()
    	rx.sma.addSample(rx.Curr)
    	rx.Avg = rx.sma.simpleMovingAvg()
    	if rx.Curr > rx.Peak {
    		rx.Peak = rx.Curr
    	}
    	rx.N++
    }
    
    // ReplicationMRFStats holds stats of MRF backlog saved to disk in the last 5 minutes
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top