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 4343#include < net/if.h>
4444#include < unistd.h>
4545
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+
4651// Externs
4752extern int optind, opterr, optopt;
4853
@@ -186,7 +191,7 @@ int main(int argc, char **argv) {
186191 // Position the interface table
187192 interfaceTable.setPosition (2 , 2 );
188193 interfaceTable.setSize (screen.getWidth () - 4 ,
189- 8 ); // TODO
194+ MAX_ROWS ); // TODO
190195
191196 // Create the detail table
192197 VerticalTable detailTable (screen);
@@ -337,7 +342,7 @@ int main(int argc, char **argv) {
337342 // Position the interface table
338343 interfaceTable.setPosition (2 , 2 );
339344 interfaceTable.setSize (screen.getWidth () - 4 ,
340- 8 ); // TODO
345+ MAX_ROWS ); // TODO
341346
342347 // Position the detail table
343348 detailTable.setPosition (2 , 12 ); // TODO
You can’t perform that action at this time.
0 commit comments