mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Minor, rearrange functions in mode order
Only moved functions around. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
ca32cb0dfc
commit
7bc1470a1e
1 file changed
+8
-8
+8
-8
@@ -526,7 +526,7 @@ int cgroup_tree(char *path, char *pfx, int mode, int pos)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int show_cgroup(char *arg)
|
int show_cgps(char *arg)
|
||||||
{
|
{
|
||||||
char path[512];
|
char path[512];
|
||||||
|
|
||||||
@@ -537,11 +537,7 @@ int show_cgroup(char *arg)
|
|||||||
arg = path;
|
arg = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* memory.current memory.min memory.max cpuset.cpus cpu.weight cpu.max */
|
return cgroup_tree(arg, NULL, 0, 0);
|
||||||
if (heading)
|
|
||||||
print_header(" MEM [MIN MAX] CPU [WEIGHT MAX] GROUP");
|
|
||||||
|
|
||||||
return cgroup_tree(arg, NULL, 2, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cgtop(uev_t *w, void *arg, int events)
|
static void cgtop(uev_t *w, void *arg, int events)
|
||||||
@@ -578,7 +574,7 @@ int show_cgtop(char *arg)
|
|||||||
return uev_run(&ctx, 0);
|
return uev_run(&ctx, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int show_cgps(char *arg)
|
int show_cgroup(char *arg)
|
||||||
{
|
{
|
||||||
char path[512];
|
char path[512];
|
||||||
|
|
||||||
@@ -589,7 +585,11 @@ int show_cgps(char *arg)
|
|||||||
arg = path;
|
arg = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
return cgroup_tree(arg, NULL, 0, 0);
|
/* memory.current memory.min memory.max cpuset.cpus cpu.weight cpu.max */
|
||||||
|
if (heading)
|
||||||
|
print_header(" MEM [MIN MAX] CPU [WEIGHT MAX] GROUP");
|
||||||
|
|
||||||
|
return cgroup_tree(arg, NULL, 2, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user