Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase max rows to display #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/cbm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
#include <net/if.h>
#include <unistd.h>

// Set the max number of rows (and thus interfaces) to display. The
// choice of 64 is arbitrary, but less likely to cut off interfaces
// than the original value of 8.
#define MAX_ROWS 64

// Externs
extern int optind, opterr, optopt;

Expand Down Expand Up @@ -186,7 +191,7 @@ int main(int argc, char **argv) {
// Position the interface table
interfaceTable.setPosition(2, 2);
interfaceTable.setSize(screen.getWidth() - 4,
8); // TODO
MAX_ROWS); // TODO

// Create the detail table
VerticalTable detailTable(screen);
Expand Down Expand Up @@ -337,7 +342,7 @@ int main(int argc, char **argv) {
// Position the interface table
interfaceTable.setPosition(2, 2);
interfaceTable.setSize(screen.getWidth() - 4,
8); // TODO
MAX_ROWS); // TODO

// Position the detail table
detailTable.setPosition(2, 12); // TODO
Expand Down