From 9a6d86dcc78c3e3a755696d2a7e71ef40c9577f0 Mon Sep 17 00:00:00 2001 From: Bostjan Skufca Date: Mon, 9 Mar 2015 19:57:37 +0100 Subject: [PATCH] lxc-top: limit container name to 18 characters Signed-off-by: Bostjan Skufca --- src/lxc/lxc_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_top.c b/src/lxc/lxc_top.c index 88404055e..8501461b2 100644 --- a/src/lxc/lxc_top.c +++ b/src/lxc/lxc_top.c @@ -303,7 +303,7 @@ static void stats_print(const char *name, const struct stats *stats, size_humanize(stats->blkio, blkio_str, sizeof(blkio_str)); size_humanize(stats->mem_used, mem_used_str, sizeof(mem_used_str)); - printf("%-18s %8.2f %8.2f %8.2f %10s %10s", + printf("%-18.18s %8.2f %8.2f %8.2f %10s %10s", name, (float)stats->cpu_use_nanos / 1000000000, (float)stats->cpu_use_sys / USER_HZ,