Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
03564352
Commit
03564352
authored
21 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Job TIMELIMIT format changed from hours:minutes to days:hours:minutes:seconds
to match that of a job's run time (TIME).
parent
430d1d83
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man1/squeue.1
+2
-2
2 additions, 2 deletions
doc/man/man1/squeue.1
src/squeue/print.c
+2
-9
2 additions, 9 deletions
src/squeue/print.c
with
4 additions
and
11 deletions
doc/man/man1/squeue.1
+
2
−
2
View file @
03564352
...
...
@@ -65,8 +65,8 @@ limit)
.br
\fB%j\fR Job name
.br
\fB%l\fR Time limit of the job
(
in hours:minutes
). The value may be "NOT_SET"
if not yet established or "UNLIMITED" for no limit.
\fB%l\fR Time limit of the job in
days:
hours:minutes
:seconds.
The value may be "NOT_SET"
if not yet established or "UNLIMITED" for no limit.
.br
\fB%m\fR Minimum size of memory (in MB) requested by the job
.br
...
...
This diff is collapsed.
Click to expand it.
src/squeue/print.c
+
2
−
9
View file @
03564352
...
...
@@ -409,21 +409,14 @@ int _print_job_job_state_compact(job_info_t * job, int width, bool right,
int
_print_job_time_limit
(
job_info_t
*
job
,
int
width
,
bool
right
,
char
*
suffix
)
{
char
time
[
FORMAT_STRING_SIZE
];
if
(
job
==
NULL
)
/* Print the Header instead */
_print_str
(
"TIMELIMIT"
,
width
,
right
,
true
);
else
if
(
job
->
time_limit
==
INFINITE
)
_print_str
(
"UNLIMITED"
,
width
,
right
,
true
);
else
if
(
job
->
time_limit
==
NO_VAL
)
_print_str
(
"NOT_SET"
,
width
,
right
,
true
);
else
{
/* format is "hours:minutes" */
snprintf
(
time
,
FORMAT_STRING_SIZE
,
"%d:%2.2d"
,
job
->
time_limit
/
60
,
job
->
time_limit
%
60
);
_print_str
(
time
,
width
,
right
,
true
);
}
else
_print_secs
((
job
->
time_limit
*
60
),
width
,
right
,
false
);
if
(
suffix
)
printf
(
"%s"
,
suffix
);
return
SLURM_SUCCESS
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment