Skip to content
Snippets Groups Projects
Commit 03564352 authored by Moe Jette's avatar Moe Jette
Browse files

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
......@@ -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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment