Skip to content

Commit b42c1ba

Browse files
authored
Merge pull request #43 from andyhot/fix/40-range-error
Make sure table width is integer
2 parents 8ddb85d + ff6067d commit b42c1ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/models/logger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ var Logger = CoreObject.extend({
1818

1919
flush: function() {
2020
var maxWidth = process.stdout.columns - 4;
21+
var halfWidth = Math.floor(maxWidth / 2);
2122
var table = new Table({
2223
head: ['Source', 'Destination'],
23-
colWidths: [maxWidth / 2, maxWidth / 2]
24+
colWidths: [halfWidth, halfWidth]
2425
});
2526

2627

0 commit comments

Comments
 (0)