Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/test/loadbalancersim/mesh/node.go

    	return n.helper.Name()
    }
    
    func (n *Node) QueueLength() *timeseries.Instance {
    	return &n.qLength
    }
    
    func (n *Node) QueueLatency() *timeseries.Instance {
    	return &n.qLatency
    }
    
    func (n *Node) calcRequestDuration() time.Duration {
    	// Get the current queue length.
    	qLen := n.q.Len()
    	qLatency := n.calcQLatency(qLen)
    
    	// Add the observations
    	tnow := time.Now()
    	n.qLength.AddObservation(float64(qLen), tnow)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top