Revision b8802cc4 scripts/gnt-job
b/scripts/gnt-job | ||
---|---|---|
69 | 69 |
headers = { |
70 | 70 |
"id": "ID", |
71 | 71 |
"status": "Status", |
72 |
"priority": "Prio", |
|
72 | 73 |
"ops": "OpCodes", |
73 | 74 |
"opresult": "OpCode_result", |
74 | 75 |
"opstatus": "OpCode_status", |
... | ... | |
77 | 78 |
"opstart": "OpCode_start", |
78 | 79 |
"opexec": "OpCode_exec", |
79 | 80 |
"opend": "OpCode_end", |
81 |
"oppriority": "OpCode_prio", |
|
80 | 82 |
"start_ts": "Start", |
81 | 83 |
"end_ts": "End", |
82 | 84 |
"received_ts": "Received", |
... | ... | |
84 | 86 |
else: |
85 | 87 |
headers = None |
86 | 88 |
|
89 |
numfields = ["priority"] |
|
90 |
|
|
87 | 91 |
# change raw values to nicer strings |
88 | 92 |
for row_id, row in enumerate(output): |
89 | 93 |
if row is None: |
... | ... | |
107 | 111 |
row[idx] = str(val) |
108 | 112 |
|
109 | 113 |
data = GenerateTable(separator=opts.separator, headers=headers, |
110 |
fields=selected_fields, data=output) |
|
114 |
fields=selected_fields, data=output, |
|
115 |
numfields=numfields) |
|
111 | 116 |
for line in data: |
112 | 117 |
ToStdout(line) |
113 | 118 |
|
Also available in: Unified diff