Kaynağa Gözat

fix typo of the list cost weighting

Signed-off-by: Alan Rodrigues <alanr5691@yahoo.com>
Alan Rodrigues 2 yıl önce
ebeveyn
işleme
6c3cea2426
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      pkg/kubecost/cloudcost.go

+ 1 - 1
pkg/kubecost/cloudcost.go

@@ -149,7 +149,7 @@ func (cc *CloudCost) GetCostMetric(costMetricName string) (CostMetric, error) {
 
 // WeightCostMetrics weights all the cost metrics with the given weightedAverage
 func (cc *CloudCost) WeightCostMetrics(weightedAverge float64) {
-	cc.AmortizedCost.Cost *= weightedAverge
+	cc.ListCost.Cost *= weightedAverge
 	cc.NetCost.Cost *= weightedAverge
 	cc.AmortizedNetCost.Cost *= weightedAverge
 	cc.InvoicedCost.Cost *= weightedAverge