Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getGaugeOfRatio (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram.go

    			nowFunc:         nowFunc,
    			getGaugeOfRatio: func() Gauge { return th },
    			numerator:       opts.InitialValue,
    			denominator:     opts.InitialDenominator,
    		}}
    }
    
    func (trh *timingRatioHistogramInner) Set(numerator float64) {
    	trh.Lock()
    	defer trh.Unlock()
    	trh.numerator = numerator
    	ratio := numerator / trh.denominator
    	trh.getGaugeOfRatio().Set(ratio)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top