Ensure everything fits on screen 79/66679/2
authorStephen Kitt <skitt@redhat.com>
Wed, 20 Dec 2017 20:26:11 +0000 (21:26 +0100)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 20 Dec 2017 22:08:08 +0000 (22:08 +0000)
commit1cff2e15406854e64b4f2b65a2e77e550d170651
treec0dc72d6332c54213d8131819f586f9b7e74a453
parentcfe6bba264c670bbe02dc92f03667b2e4b9b37a0
Ensure everything fits on screen

Depending on the window size, the controller names and number and
names of shards, we might run off the end of the screen, which aborts
curses in a rather inelegant fashion. We reduce the column widths
until everything fits.

Change-Id: I2924c005646694368b2eaa220ae3b5f3313b5c6c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
tools/clustering/cluster-monitor/monitor.py