fixed queueMetrics calculation