Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newXferStats (0.14 sec)

  1. cmd/site-replication-metrics.go

    }
    
    func (sr *SRStats) update(st replStat, dID string) {
    	sr.lock.Lock()
    	defer sr.lock.Unlock()
    	srs, ok := sr.M[dID]
    	if !ok {
    		srs = &SRStatus{
    			XferRateLrg: newXferStats(),
    			XferRateSml: newXferStats(),
    		}
    	}
    	srs.Endpoint = st.Endpoint
    	srs.Secure = st.Secure
    	switch {
    	case st.Completed:
    		srs.ReplicatedSize += st.TransferSize
    		srs.ReplicatedCount++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication-stats.go

    	bs, ok := r.Cache[bucket]
    	if !ok {
    		bs = newBucketReplicationStats()
    		r.Cache[bucket] = bs
    	}
    	b, ok := bs.Stats[ri.Arn]
    	if !ok {
    		b = &BucketReplicationStat{
    			XferRateLrg: newXferStats(),
    			XferRateSml: newXferStats(),
    		}
    		bs.Stats[ri.Arn] = b
    	}
    
    	switch {
    	case rs.Completed:
    		b.ReplicatedSize += rs.TransferSize
    		b.ReplicatedCount++
    		if rs.TransferDuration > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. cmd/bucket-stats.go

    	qs.QStats = r.qCache.getSiteStats()
    	qs.MRFStats = ReplicationMRFStats{
    		LastFailedCount: atomic.LoadUint64(&r.mrfStats.LastFailedCount),
    	}
    	r.RLock()
    	defer r.RUnlock()
    	tx := newXferStats()
    	for _, brs := range r.Cache {
    		for _, v := range brs.Stats {
    			tx := tx.merge(*v.XferRateLrg)
    			tx = tx.merge(*v.XferRateSml)
    		}
    	}
    	qs.XferStats[Total] = *tx
    	return qs
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 11:39:51 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics.go

    	peak := rx.Peak
    	if curr > peak {
    		peak = curr
    	}
    	return &XferStats{
    		Curr:    curr,
    		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 {
    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