Skip to content

Commit 8a02b54

Browse files
committed
fix int division
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 4f81553 commit 8a02b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metrics_agentpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (m *MetricsCollectorAgentPool) collectAgentQueues(ctx context.Context, logg
230230

231231
agentPoolUsageMetric.Add(prometheus.Labels{
232232
"agentPoolID": int64ToString(agentPoolId),
233-
}, float64(agentPoolUsed/agentPoolSize))
233+
}, float64(agentPoolUsed)/float64(agentPoolSize))
234234

235235
callback <- func() {
236236
agentPoolUsageMetric.GaugeSet(m.prometheus.agentPoolUsage)

0 commit comments

Comments
 (0)