Explorar o código

Fix ClearAdjustments function to clear all of the adjustments

Niko Kovacevic %!s(int64=4) %!d(string=hai) anos
pai
achega
b302dd57cc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      pkg/kubecost/totals.go

+ 3 - 0
pkg/kubecost/totals.go

@@ -41,6 +41,9 @@ type AllocationTotals struct {
 func (art *AllocationTotals) ClearAdjustments() {
 func (art *AllocationTotals) ClearAdjustments() {
 	art.CPUCostAdjustment = 0.0
 	art.CPUCostAdjustment = 0.0
 	art.GPUCostAdjustment = 0.0
 	art.GPUCostAdjustment = 0.0
+	art.LoadBalancerCostAdjustment = 0.0
+	art.NetworkCostAdjustment = 0.0
+	art.PersistentVolumeCostAdjustment = 0.0
 	art.RAMCostAdjustment = 0.0
 	art.RAMCostAdjustment = 0.0
 }
 }