Skip to content

Commit

Permalink
fix convert float64 error
Browse files Browse the repository at this point in the history
  • Loading branch information
leiwingqueen committed Nov 4, 2024
1 parent 37f10f0 commit 7980f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/store/horizontalpodautoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ func createHPASpecTargetMetric() generator.FamilyGenerator {
}

if metricTarget.Value != nil {
metricMap[value] = convertValueToFloat64(metricTarget.Value) / 1000
metricMap[value] = convertValueToFloat64(metricTarget.Value)
}
if metricTarget.AverageValue != nil {
metricMap[average] = convertValueToFloat64(metricTarget.AverageValue) / 1000
metricMap[average] = convertValueToFloat64(metricTarget.AverageValue)
}
if metricTarget.AverageUtilization != nil {
metricMap[utilization] = float64(*metricTarget.AverageUtilization)
Expand Down

0 comments on commit 7980f03

Please sign in to comment.