File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 43
43
#include < net/if.h>
44
44
#include < unistd.h>
45
45
46
+ // Set the max number of rows (and thus interfaces) to display. The
47
+ // choice of 64 is arbitrary, but less likely to cut off interfaces
48
+ // than the original value of 8.
49
+ #define MAX_ROWS 64
50
+
46
51
// Externs
47
52
extern int optind, opterr, optopt;
48
53
@@ -186,7 +191,7 @@ int main(int argc, char **argv) {
186
191
// Position the interface table
187
192
interfaceTable.setPosition (2 , 2 );
188
193
interfaceTable.setSize (screen.getWidth () - 4 ,
189
- 8 ); // TODO
194
+ MAX_ROWS ); // TODO
190
195
191
196
// Create the detail table
192
197
VerticalTable detailTable (screen);
@@ -337,7 +342,7 @@ int main(int argc, char **argv) {
337
342
// Position the interface table
338
343
interfaceTable.setPosition (2 , 2 );
339
344
interfaceTable.setSize (screen.getWidth () - 4 ,
340
- 8 ); // TODO
345
+ MAX_ROWS ); // TODO
341
346
342
347
// Position the detail table
343
348
detailTable.setPosition (2 , 12 ); // TODO
You can’t perform that action at this time.
0 commit comments