Skip to content

Commit

Permalink
Merge pull request #1494 from d4s/lxcinfo
Browse files Browse the repository at this point in the history
Increased buffer length in print_stats()
  • Loading branch information
stgraber committed Mar 30, 2017
2 parents 1266eb5 + 1bbc627 commit 67c9752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/tools/lxc_info.c
Expand Up @@ -204,7 +204,7 @@ static void print_net_stats(struct lxc_container *c)
static void print_stats(struct lxc_container *c)
{
int i, ret;
char buf[256];
char buf[4096];

ret = c->get_cgroup_item(c, "cpuacct.usage", buf, sizeof(buf));
if (ret > 0 && ret < sizeof(buf)) {
Expand Down

0 comments on commit 67c9752

Please sign in to comment.