]> git.ipfire.org Git - thirdparty/lxc.git/commit
lua: fix stats collection using get_cgroup_item
authorDwight Engen <dwight.engen@gmail.com>
Thu, 31 Oct 2013 20:38:30 +0000 (16:38 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 4 Nov 2013 12:37:10 +0000 (06:37 -0600)
commit891f838ba8c555a4fd3097f952d503d144ad9fb8
tree786f516b47cb3d6e78588f22e14a07c0d7fc124f
parent80ee22284b4172f9ff1d55c62e4a0ef01a4be92e
lua: fix stats collection using get_cgroup_item

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.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lua-lxc/lxc.lua