Browse Source

Fix recent changes to match Allocation type change

Niko Kovacevic 5 years ago
parent
commit
0e3b44cd1d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      pkg/kubecost/allocation.go

+ 0 - 2
pkg/kubecost/allocation.go

@@ -684,7 +684,6 @@ func (as *AllocationSet) AggregateBy(properties Properties, options *AllocationA
 				Start:      as.Start(),
 				End:        as.End(),
 				SharedCost: totalSharedCost,
-				TotalCost:  totalSharedCost,
 			})
 		}
 	}
@@ -831,7 +830,6 @@ func (as *AllocationSet) AggregateBy(properties Properties, options *AllocationA
 				alloc.CPUCost += idleCPUCost
 				alloc.GPUCost += idleGPUCost
 				alloc.RAMCost += idleRAMCost
-				alloc.TotalCost += idleCPUCost + idleGPUCost + idleRAMCost
 			}
 		}
 	}