diff --git a/internal/scheduler/fairness/fairness.go b/internal/scheduler/fairness/fairness.go index 56c5497bf64..991a14fbe09 100644 --- a/internal/scheduler/fairness/fairness.go +++ b/internal/scheduler/fairness/fairness.go @@ -55,7 +55,7 @@ func (f *DominantResourceFairness) CostFromAllocationAndWeight(allocation schedu continue } q := allocation.Get(t) - tcost := float64(q.MilliValue()) / float64(capacity.MilliValue()) + tcost := q.AsApproximateFloat64() / capacity.AsApproximateFloat64() if tcost > cost { cost = tcost }