From cbe3e495357308177ca12e07996217ea663cbf78 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 24 Feb 2016 12:34:37 +0100 Subject: libsmartcols: fix relative column width for maxout Signed-off-by: Karel Zak --- libsmartcols/samples/continuous.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libsmartcols/samples') 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: -- cgit v1.2.3-55-g7522