]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: don't mark as extreme where average is zero
authorKarel Zak <kzak@redhat.com>
Thu, 23 Aug 2018 08:13:17 +0000 (10:13 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Aug 2018 08:13:17 +0000 (10:13 +0200)
commit369be41bcd1240684d21535873910739fa74e298
tree933e14cabec3ae2933bfaa1506b2dd3cd8f2b11d
parentc434b2782c20f3d8756bf3944012badc63128062
libsmartcols: don't mark as extreme where average is zero

The columns with NOEXTREME flag are internally marked as extreme
(=contains extreme width) if maximal with is greater than 2 *
average_width. This detection has to sure that the average is non-zero
otherwise the column is always "extreme".

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/column.c
libsmartcols/src/table_print.c