Просмотр исходного кода

Fix recent changes to match Allocation type change

Niko Kovacevic 5 лет назад
Родитель
Сommit
0e3b44cd1d
1 измененных файлов с 0 добавлено и 2 удалено
  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(),
 				Start:      as.Start(),
 				End:        as.End(),
 				End:        as.End(),
 				SharedCost: totalSharedCost,
 				SharedCost: totalSharedCost,
-				TotalCost:  totalSharedCost,
 			})
 			})
 		}
 		}
 	}
 	}
@@ -831,7 +830,6 @@ func (as *AllocationSet) AggregateBy(properties Properties, options *AllocationA
 				alloc.CPUCost += idleCPUCost
 				alloc.CPUCost += idleCPUCost
 				alloc.GPUCost += idleGPUCost
 				alloc.GPUCost += idleGPUCost
 				alloc.RAMCost += idleRAMCost
 				alloc.RAMCost += idleRAMCost
-				alloc.TotalCost += idleCPUCost + idleGPUCost + idleRAMCost
 			}
 			}
 		}
 		}
 	}
 	}