Skip to content

Commit

Permalink
Fix output columns width calculation (thanks @hgolson77)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetazzoni committed Aug 13, 2018
1 parent c9ef777 commit e231249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maestro/plays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BaseOrchestrationPlay:
# column is bounded between 0 and 40 characters. We keep 60 columns for
# pending and commited output in the last column.
_COLUMNS = columns()
_INST_CSIZE = min(40, max(20, (_COLUMNS - 60) / 3))
_INST_CSIZE = min(40, max(20, int((_COLUMNS - 60) / 3)))
_SHIP_CSIZE = min(40, max(0, _COLUMNS - _INST_CSIZE - 80))

# Header line format and titles.
Expand Down

0 comments on commit e231249

Please sign in to comment.