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

torque/qstat: fix display of walltime

This fixes the display of Resources_List.walltime in full (-f) mode: despite
non-zero values, it is printed as "00:00:00", because the hash key 'aWDuration'
is not defined there. Use 'time_limit' and convert from minutes to seconds.
Patch from Gerrit.
parent d2d6eba9
No related branches found
No related tags found
No related merge requests found
......@@ -527,7 +527,7 @@ sub print_job_full
my $user_group = getgrgid($job->{'group_id'});
printf("\tegroup = %s(%d)\n", $user_group, $job->{'group_id'});
printf("\tResource_List.walltime = %s\n", hhmmss($job->{'aWDuration'}));
printf("\tResource_List.walltime = %s\n", hhmmss($job->{'time_limit'} * 60));
printf("\tResource_List.nodect = %d\n", $job->{'num_nodes'})
if $job->{'num_nodes'};
printf("\tResource_List.ncpus = %s\n", $job->{'num_procs'})
......
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