Previously, the lua stats collection was building its own paths to the
cgroup files, which could be wrong depending on what --with-cgroup-pattern
was passed to configure. Fix it to use the get_cgroup_item api so it
always finds the files.
Remove cgroup_path_get since it is not used anymore.
Signe
- Also removed duplicate stats_clear lua function
Signed-off-by: Dwight Engen
---
doc/lxc-top.sgml.in | 33 ++---
src/lua-lxc/lxc.lua | 17 ++---
src/lxc/lxc-top | 25 ++---
3 files changed, 50 insertions(+), 25 deletions(-)
diff -
fix up api test to run and add test for new [gs]et_cgroup_item
Signed-off-by: Dwight Engen
---
src/lua-lxc/core.c | 35 +++
src/lua-lxc/lxc.lua | 16
src/lua-lxc/test/apitest.lua | 13 +
3 files changed, 64 insertion
Signed-off-by: S.Çağlar Onur
---
src/lxc/lxccontainer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index a9d97ad..362b429 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -441,7 +441,7 @@ static bool lxcap