Skip to content

Commit fb1aaed

Browse files
committed
Updated comment
1 parent b189216 commit fb1aaed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/queuejob/queuejob_controller_ex.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ const defaultBackoffTime = 20
6868

6969
var (
7070
// Regex variables for extracting resource values
71-
cpuRegex = regexp.MustCompile(`cpu (\d+(\.\d+)?)`)
71+
cpuRegex = regexp.MustCompile(`cpu (\d+(\.\d+)?)`)
7272
memoryRegex = regexp.MustCompile(`memory (\d+(\.\d+)?)`)
73-
gpuRegex = regexp.MustCompile(`GPU (\d+)`)
73+
gpuRegex = regexp.MustCompile(`GPU (\d+)`)
7474
)
7575

7676
// XController the AppWrapper Controller type
@@ -930,7 +930,7 @@ func (qjm *XController) chooseAgent(ctx context.Context, qj *arbv1.AppWrapper) s
930930
return ""
931931
}
932932

933-
// Function for calculating required resources to run AppWrapper and printing a log if there is a required increase for resources.
933+
// Function for calculating required resources to run AppWrapper and logging if there is a required increase for resources.
934934
func calculateRequiredResources(namespace string, appwrapperName string, requestedResources string, totalAvailable string) {
935935
// Requested resources values //
936936
requestedCPU := cpuRegex.FindStringSubmatch(requestedResources)

0 commit comments

Comments
 (0)