Commit 1764f192 by Bostjan Skufca Committed by Stéphane Graber

lxc-top: limit container name to 18 characters

parent 6b9a014a
...@@ -303,7 +303,7 @@ static void stats_print(const char *name, const struct stats *stats, ...@@ -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->blkio, blkio_str, sizeof(blkio_str));
size_humanize(stats->mem_used, mem_used_str, sizeof(mem_used_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, name,
(float)stats->cpu_use_nanos / 1000000000, (float)stats->cpu_use_nanos / 1000000000,
(float)stats->cpu_use_sys / USER_HZ, (float)stats->cpu_use_sys / USER_HZ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment