Skip to content

Commit adc5f7d

Browse files
committed
fix comments
1 parent b2013d3 commit adc5f7d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

internal/cbatch/cbatch.go

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ func ProcessCbatchArgs(cmd *cobra.Command, args []CbatchArg) (bool, *protos.Task
254254
}
255255
if FlagExclusive {
256256
task.Exclusive = true
257+
}
257258
if FlagOpenMode != "" {
258259
if FlagOpenMode == util.OpenModeAppend {
259260
task.GetBatchMeta().OpenModeAppend = proto.Bool(true)

internal/cqueue/CmdArgParser.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ func init() {
114114
115115
Supported format identifiers or string, string case insensitive:
116116
%a/%Account - Display the account associated with the job.
117-
%C/%AllocCpus - Display the cpus allocated to the job.
118-
%c/%CpuPerNode - Display the requested cpu per node of the job.
117+
%C/%ReqCpus - Display the cpus requested to the job.
118+
%c/%AllocCpus - Display the cpus allocated to the job.
119119
%e/%ElapsedTime - Display the elapsed time from the start of the job.
120120
%h/%Held - Display the hold state of the job.
121121
%j/%JobID - Display the ID of the job.
@@ -128,7 +128,7 @@ Supported format identifiers or string, string case insensitive:
128128
%n/%Name - Display the name of the job.
129129
%P/%Partition - Display the partition the job is running in.
130130
%p/%Priority - Display the priority of the job.
131-
%Q/%ReqCpus - Display the cpus requested to the job.
131+
%Q/%CpuPerNode - Display the requested cpu per node of the job.
132132
%q/%QoS - Display the Quality of Service level for the job.
133133
%R/%Reason - Display the reason of pending.
134134
%r/%ReqNodes - Display the reqnodes of the job.

internal/cqueue/cqueue.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,9 @@ var fieldMap = map[string]FieldProcessor{
455455
"account": {"Account", ProcessAccount},
456456

457457
// 'c' group
458-
"c": {"ReqCpuPerNode", ProcessReqCpuPerNode},
459-
"reqcpupernode": {"ReqCpuPerNode", ProcessReqCpuPerNode},
460-
"C": {"AllocCpus", ProcessAllocCpus},
458+
"C": {"ReqCpus", ProcessReqCPUs},
459+
"reqcpus": {"ReqCpus", ProcessReqCPUs},
460+
"c": {"AllocCpus", ProcessAllocCpus},
461461
"alloccpus": {"AllocCpus", ProcessAllocCpus},
462462

463463
// 'e' group
@@ -503,8 +503,8 @@ var fieldMap = map[string]FieldProcessor{
503503
// 'q' group
504504
"q": {"QoS", ProcessQoS},
505505
"qos": {"QoS", ProcessQoS},
506-
"Q": {"ReqCpus", ProcessReqCPUs},
507-
"reqcpus": {"ReqCpus", ProcessReqCPUs},
506+
"Q": {"ReqCpuPerNode", ProcessReqCpuPerNode},
507+
"reqcpupernode": {"ReqCpuPerNode", ProcessReqCpuPerNode},
508508

509509
// 'r' group
510510
"r": {"ReqNodes", ProcessReqNodes},

0 commit comments

Comments
 (0)