Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for updateLocked (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    func (igr *integrator) SetToCurrentTime() {
    	igr.Set(float64(time.Now().UnixNano()))
    }
    
    func (igr *integrator) setLocked(x float64) {
    	igr.updateLocked()
    	igr.x = x
    	if x < igr.min {
    		igr.min = x
    	}
    	if x > igr.max {
    		igr.max = x
    	}
    }
    
    func (igr *integrator) updateLocked() {
    	now := igr.clock.Now()
    	dt := now.Sub(igr.lastTime).Seconds()
    	igr.lastTime = now
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top