Files
mirror_zfs/cmd/zpool
Philip Pokorny a36bad1759 Fix column width calculation issue with certain terminal widths
If the reported terminal width is 0 or less than 42, the signed variable
width was set to a negative number that was then assigned to the
unsigned column width becoming a huge number.

Add comments and change logic to better explain what's happening.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Philip Pokorny <ppokorny@mindspring.com>
Closes #10247
2020-05-06 17:17:38 -07:00
..
2020-04-14 11:36:28 -07:00
2020-04-14 13:18:23 -07:00
2020-04-14 11:36:28 -07:00
2019-09-30 12:16:06 -07:00
2020-04-14 11:36:28 -07:00