mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
initctl: cgroup and status commands should show mem.min numeric
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
46ccdc3820
commit
9fd860ef3c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -324,7 +324,7 @@ struct cg *cg_conf(char *path)
|
|||||||
{
|
{
|
||||||
static struct cg cg;
|
static struct cg cg;
|
||||||
|
|
||||||
cgroup_memval(path, "memory.min", cg.cg_mem.min, sizeof(cg.cg_mem.min));
|
cgroup_val(path, "memory.min", cg.cg_mem.min, sizeof(cg.cg_mem.min));
|
||||||
cgroup_memval(path, "memory.max", cg.cg_mem.max, sizeof(cg.cg_mem.max));
|
cgroup_memval(path, "memory.max", cg.cg_mem.max, sizeof(cg.cg_mem.max));
|
||||||
cgroup_val(path, "cpu.weight", cg.cg_cpu.weight, sizeof(cg.cg_cpu.weight));
|
cgroup_val(path, "cpu.weight", cg.cg_cpu.weight, sizeof(cg.cg_cpu.weight));
|
||||||
cgroup_val(path, "cpu.max", cg.cg_cpu.max, sizeof(cg.cg_cpu.max));
|
cgroup_val(path, "cpu.max", cg.cg_cpu.max, sizeof(cg.cg_cpu.max));
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ char *pid_cgroup (int pid, char *buf, size_t len);
|
|||||||
uint64_t cgroup_memory(char *group);
|
uint64_t cgroup_memory(char *group);
|
||||||
|
|
||||||
struct cg *cg_stats(char *path);
|
struct cg *cg_stats(char *path);
|
||||||
struct cg *cg_conf(char *path);
|
struct cg *cg_conf (char *path);
|
||||||
|
|
||||||
int cgroup_tree (char *path, char *pfx, int mode, int pos);
|
int cgroup_tree (char *path, char *pfx, int mode, int pos);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user