diff --git a/pkg/agent/core/state.go b/pkg/agent/core/state.go index ad32d093b..6ba2bcbfd 100644 --- a/pkg/agent/core/state.go +++ b/pkg/agent/core/state.go @@ -463,7 +463,7 @@ func (s *state) calculateNeonVMAction( desiredTime := logicalTime if desiredResources.HasFieldLessThan(s.VM.Using()) { - // We are downscaling, so we needed a permit from monitor + // We are downscaling, so we needed a permit from theĀ” monitor desiredTime = desiredTime.Earliest(s.Monitor.CurrentLogicalTime) } diff --git a/pkg/agent/runner.go b/pkg/agent/runner.go index daa5dad8a..2b4fe1a47 100644 --- a/pkg/agent/runner.go +++ b/pkg/agent/runner.go @@ -659,8 +659,6 @@ func (r *Runner) doNeonVMRequest( Value: desiredLogicalTime, }} - fmt.Printf("Desired Logical Time: %v\n", desiredLogicalTime) - patchPayload, err := json.Marshal(patches) if err != nil { panic(fmt.Errorf("Error marshalling JSON patch: %w", err)) diff --git a/pkg/plugin/run.go b/pkg/plugin/run.go index 36aa47d15..b49da078c 100644 --- a/pkg/plugin/run.go +++ b/pkg/plugin/run.go @@ -309,12 +309,7 @@ func (e *AutoscaleEnforcer) handleResources( }), ) - result := api.Resources{ - VCPU: pod.cpu.Reserved, - Mem: pod.mem.Reserved, - } - - return result, 200, nil + return api.Resources{VCPU: pod.cpu.Reserved, Mem: pod.mem.Reserved}, 200, nil } func (e *AutoscaleEnforcer) updateMetricsAndCheckMustMigrate(