Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Waddell (0.17 sec)

  1. cmd/last-minute.go

    	sec := time.Now().Unix()
    	l.forwardTo(sec)
    	winIdx := sec % 60
    	l.Totals[winIdx].add(t)
    	l.LastSec = sec
    }
    
    // Add  a new duration data
    func (l *lastMinuteLatency) addAll(sec int64, a AccElem) {
    	l.forwardTo(sec)
    	winIdx := sec % 60
    	l.Totals[winIdx].merge(a)
    	l.LastSec = sec
    }
    
    // Merge all recorded latencies of last minute into one
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 05 17:40:45 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. cmd/bucket-stats.go

    	nl = ReplicationLastMinute{rl.LastMinute.merge(other.LastMinute)}
    	return
    }
    
    func (rl *ReplicationLastMinute) addsize(n int64) {
    	t := time.Now().Unix()
    	rl.LastMinute.addAll(t-1, AccElem{Total: t - 1, Size: n, N: 1})
    }
    
    func (rl *ReplicationLastMinute) String() string {
    	t := rl.LastMinute.getTotal()
    	return fmt.Sprintf("ReplicationLastMinute sz= %d, n=%d , dur=%d", t.Size, t.N, t.Total)
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    			old := e.cached.Swap(newAcc)
    			var a AccElem
    			a.Size = atomic.LoadInt64(&old.Size)
    			a.Total = atomic.LoadInt64(&old.Total)
    			a.N = atomic.LoadInt64(&old.N)
    			e.mu.Lock()
    			e.lastMinuteLatency.addAll(t-1, a)
    			e.mu.Unlock()
    			acc = newAcc
    		} else {
    			// We may be able to grab the new accumulator by yielding.
    			runtime.Gosched()
    			acc = e.cached.Load()
    		}
    	}
    	atomic.AddInt64(&acc.N, 1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top