Skip to content

Commit

Permalink
print old values
Browse files Browse the repository at this point in the history
Signed-off-by: MohammedAbdi <[email protected]>
  • Loading branch information
mamy-CS committed Aug 1, 2024
1 parent 5019d37 commit b0e9aa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/labelgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func (r *LabelGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request)
for containerId, oldValue := range labelGroup.Status.ActiveContainerIds {
if newValue, found := metricValues[containerId]; found {
// totalEnergy += (newValue - oldValue) //put back
r.Logger.V(5).Info(fmt.Sprintf("[Reconcile-Aggregating] oldValue: %#v", oldValue))
totalEnergy = 100 // testing purpose - remove after
labelGroup.Status.ActiveContainerIds[containerId] = newValue
delete(metricValues, containerId)
Expand Down

0 comments on commit b0e9aa0

Please sign in to comment.