func (c *Cache) desiredAndActualSlices() metricsUpdate {
	mUpdate := metricsUpdate{}
	for _, spCache := range c.cache {
		for _, eInfo := range spCache.items {
			mUpdate.actual += eInfo.Slices
			mUpdate.desired += numDesiredSlices(eInfo.Endpoints, int(c.maxEndpointsPerSlice))
		}
	}
	return mUpdate
}
// desiredAndActualSlices returns a metricsUpdate with the desired and actual
// number of EndpointSlices given the current values in the cache.
// Must be called holding lock.
desiredAndActualSlices returns a metricsUpdate with the desired and actual
number of EndpointSlices given the current values in the cache.
Must be called holding lock.
// desiredAndActualSlices returns a metricsUpdate with the desired and actual // number of EndpointSlices given the current values in the cache . // Must be called holding lock .
func (c *Cache) desiredAndActualSlices() metricsUpdate {
	mUpdate := metricsUpdate{}
	for _, spCache := range c.cache {
		for _, eInfo := range spCache.items {
			mUpdate.actual += eInfo.Slices
			mUpdate.desired += numDesiredSlices(eInfo.Endpoints, int(c.maxEndpointsPerSlice))
		}
	}
	return mUpdate
}
func ( c * Cache ) desiredAndActualSlices ( ) metricsUpdate { mUpdate := metricsUpdate { } for _ , spCache := range c . cache { for _ , eInfo := range spCache . items { mUpdate . actual += eInfo . Slices mUpdate . desired += numDesiredSlices ( eInfo . Endpoints , int ( c . maxEndpointsPerSlice ) ) } } return mUpdate }
desiredAndActualSlices returns a metricsUpdate with the desired and actual
number of EndpointSlices given the current values in the cache.
desiredAndActualSlices returns a metricsUpdate with the desired and actual number of EndpointSlices given the current values in the cache .