From 7b7fb6b49ae109d266617dbcb885c57ea8178fec Mon Sep 17 00:00:00 2001 From: Bobbins228 Date: Tue, 7 Nov 2023 09:45:51 +0000 Subject: [PATCH] Updated comments --- pkg/controller/queuejob/queuejob_controller_ex.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/queuejob/queuejob_controller_ex.go b/pkg/controller/queuejob/queuejob_controller_ex.go index 0c1b7730..dacb5f07 100644 --- a/pkg/controller/queuejob/queuejob_controller_ex.go +++ b/pkg/controller/queuejob/queuejob_controller_ex.go @@ -976,17 +976,17 @@ func calculateRequiredResources(namespace string, appwrapperName string, request memoryRegex := regexp.MustCompile(`memory (\d+(\.\d+)?)`) gpuRegex := regexp.MustCompile(`GPU (\d+)`) - // requested resources values // + // Requested resources values // requestedCPU := cpuRegex.FindStringSubmatch(requestedResources) requestedMemory := memoryRegex.FindStringSubmatch(requestedResources) requestedGPU := gpuRegex.FindStringSubmatch(requestedResources) - // available resources values // + // Available resources values // availableCPU := cpuRegex.FindStringSubmatch(totalAvailable) availableMemory := memoryRegex.FindStringSubmatch(totalAvailable) availableGPU := gpuRegex.FindStringSubmatch(totalAvailable) - // convert values to float // + // Convert values to float // requestedCPUValue, err := strconv.ParseFloat(requestedCPU[1], 64) if err != nil { klog.Warningf("Error parsing CPU value: ", err)