Преглед изворни кода

fix typo of the list cost weighting

Signed-off-by: Alan Rodrigues <alanr5691@yahoo.com>
Alan Rodrigues пре 2 година
родитељ
комит
0925d64f71
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/kubecost/cloudcost.go

+ 1 - 1
pkg/kubecost/cloudcost.go

@@ -147,7 +147,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