Bill,
Thanks for reporting this. There is clearly a discrepancy between the squeue man page and the output.
Here’s a patch that I just checked into 2.1 to make the behavior match the documentation:
--- src/squeue/print.c (revision 20944)
+++ src/squeue/print.c (working copy)
@@ -757,7 +757,19 @@
if (job == NULL) /* Print the Header instead */
_print_str("SHARED", width, right_justify, true);
else {
- _print_int(job->shared, width, right_justify, true);
+ switch (job->shared) {
+ case 0:
+ _print_str("no", width, right_justify, true);
+ break;
+ case 1:
+ case 2:
+ _print_str("yes", width, right_justify, true);
+ break;
+ case (uint16_t)NO_VAL:
+ default:
+ _print_str("unknwn", width, right_justify, true);
+ break;
+ }
}
if (suffix)
printf("%s", suffix);
Don
| "Lipari, Don"
<lip...@llnl.gov>
Sent by: owner-s...@lists.llnl.gov 08/13/2010 02:48 PM
|
|