Mercurial > archived > louis > perso > liblxcstats
diff tests/open.c @ 7:8339ab15527d
Add running/stopped containers global statistics and refactor some things
author | Louis Opter <louis@dotcloud.com> |
---|---|
date | Sat, 01 Jan 2011 17:46:40 +0100 |
parents | 6ce4443e7545 |
children |
line wrap: on
line diff
--- a/tests/open.c Sat Jan 01 16:18:17 2011 +0100 +++ b/tests/open.c Sat Jan 01 17:46:40 2011 +0100 @@ -12,8 +12,9 @@ hdl = lxcst_open(); - if (hdl) { - printf("%s: mnt_dir=%s.\n", *argv, hdl->cgroup_dir); + if (hdl && hdl->cgroup_dir && hdl->lxc_dir) { + printf("%s: cgroup_dir=%s.\n", *argv, hdl->cgroup_dir); + printf("%s: lxc_dir=%s.\n", *argv, hdl->lxc_dir); return (EXIT_SUCCESS); }