Przeglądaj źródła

fix typo of the list cost weighting

Signed-off-by: Alan Rodrigues <alanr5691@yahoo.com>
Alan Rodrigues 2 lat temu
rodzic
commit
0925d64f71
1 zmienionych plików z 1 dodań i 1 usunięć
  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