diff options
author | Karel Zak | 2016-02-24 12:34:37 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-24 12:34:37 +0100 |
commit | cbe3e495357308177ca12e07996217ea663cbf78 (patch) | |
tree | 67cfbe292d18cf4d65a69693a20f12968c9830a1 /libsmartcols/samples | |
parent | findmnt: use scols_table_print_range() for --poll (diff) | |
download | kernel-qcow2-util-linux-cbe3e495357308177ca12e07996217ea663cbf78.tar.gz kernel-qcow2-util-linux-cbe3e495357308177ca12e07996217ea663cbf78.tar.xz kernel-qcow2-util-linux-cbe3e495357308177ca12e07996217ea663cbf78.zip |
libsmartcols: fix relative column width for maxout
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/samples')
-rw-r--r-- | libsmartcols/samples/continuous.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsmartcols/samples/continuous.c b/libsmartcols/samples/continuous.c index 2fe720e2f..02efd5de9 100644 --- a/libsmartcols/samples/continuous.c +++ b/libsmartcols/samples/continuous.c @@ -30,11 +30,12 @@ static double time_diff(struct timeval *a, struct timeval *b) /* add columns to the @tb */ static void setup_columns(struct libscols_table *tb) { - if (!scols_table_new_column(tb, "#NUM", 0, SCOLS_FL_RIGHT)) + scols_table_enable_maxout(tb, 1); + if (!scols_table_new_column(tb, "#NUM", 0.1, SCOLS_FL_RIGHT)) goto fail; - if (!scols_table_new_column(tb, "DATA", 0, 0)) + if (!scols_table_new_column(tb, "DATA", 0.7, 0)) goto fail; - if (!scols_table_new_column(tb, "TIME", 0, 0)) + if (!scols_table_new_column(tb, "TIME", 0.2, 0)) goto fail; return; fail: |