[torqueusers] Patch: fix line breaking on qstat

Ronny T. Lampert telecaadmin at uni.de
Tue Jan 24 06:42:04 MST 2006


[And again for -users]

Hi,

somehow qstat was always putting blank lines between each job status line on
standard terminals. I really don't know why, because if you add up all the
numbers you don't come close to 80.

The following patch fixes it (against 2.0.0p5) by shortening the Queue
string size from 16 to 15 chars (diff in TORQUE/src/cmds)


--- qstat.c~    2006-01-24 14:37:14.000000000 +0100
+++ qstat.c     2006-01-24 14:36:30.000000000 +0100
@@ -397,7 +397,7 @@
 #define OWNERL  16  /* printf of jobs */
 #define TIMEUL  8   /* printf of jobs */
 #define STATEL  1   /* printf of jobs */
-#define LOCL    16  /* printf of jobs */
+#define LOCL    15  /* printf of jobs */
 #define SIZEL  6   /* length of "SIZE" fields in printf */


Cheers,
Ronny



More information about the torqueusers mailing list