Skip to content

Commit ff306e4

Browse files
authored
Merge pull request #8 from jwbowen/more-than-7-interfaces
Increase max rows to display
2 parents 2c173cb + e68ae27 commit ff306e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/cbm.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
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
4752
extern 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

0 commit comments

Comments
 (0)