Commit 67c97521 by Stéphane Graber Committed by GitHub

Merge pull request #1494 from d4s/lxcinfo

Increased buffer length in print_stats()
parents 1266eb51 1bbc6275
...@@ -204,7 +204,7 @@ static void print_net_stats(struct lxc_container *c) ...@@ -204,7 +204,7 @@ static void print_net_stats(struct lxc_container *c)
static void print_stats(struct lxc_container *c) static void print_stats(struct lxc_container *c)
{ {
int i, ret; int i, ret;
char buf[256]; char buf[4096];
ret = c->get_cgroup_item(c, "cpuacct.usage", buf, sizeof(buf)); ret = c->get_cgroup_item(c, "cpuacct.usage", buf, sizeof(buf));
if (ret > 0 && ret < sizeof(buf)) { if (ret > 0 && ret < sizeof(buf)) {
......
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