Revision 16be8703 scripts/gnt-node
b/scripts/gnt-node | ||
---|---|---|
63 | 63 |
|
64 | 64 |
numfields = ["dtotal", "dfree", "mtotal", "mnode", "mfree", "pinst", "sinst"] |
65 | 65 |
|
66 |
OutputTable(separator=opts.separator, headers=headers, |
|
67 |
fields=selected_fields, unitfields=unitfields, |
|
68 |
numfields=numfields, data=output) |
|
66 |
data = GenerateTable(separator=opts.separator, headers=headers, |
|
67 |
fields=selected_fields, unitfields=unitfields, |
|
68 |
numfields=numfields, data=output) |
|
69 |
for line in data: |
|
70 |
logger.ToStdout(line) |
|
69 | 71 |
|
70 | 72 |
return 0 |
71 | 73 |
|
... | ... | |
130 | 132 |
|
131 | 133 |
numfields = ["size"] |
132 | 134 |
|
133 |
OutputTable(separator=opts.separator, headers=headers, |
|
134 |
fields=selected_fields, unitfields=unitfields, |
|
135 |
numfields=numfields, data=output) |
|
135 |
data = GenerateTable(separator=opts.separator, headers=headers, |
|
136 |
fields=selected_fields, unitfields=unitfields, |
|
137 |
numfields=numfields, data=output) |
|
138 |
|
|
139 |
for line in data: |
|
140 |
logger.ToStdout(line) |
|
136 | 141 |
|
137 | 142 |
return 0 |
138 | 143 |
|
Also available in: Unified diff