aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firemon/cgroup.c')
-rw-r--r--src/firemon/cgroup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/firemon/cgroup.c b/src/firemon/cgroup.c
index 48427210b..41afa41fd 100644
--- a/src/firemon/cgroup.c
+++ b/src/firemon/cgroup.c
@@ -33,7 +33,7 @@ static void print_cgroup(int pid) {
33 free(file); 33 free(file);
34 return; 34 return;
35 } 35 }
36 36
37 char buf[MAXBUF]; 37 char buf[MAXBUF];
38 if (fgets(buf, MAXBUF, fp)) { 38 if (fgets(buf, MAXBUF, fp)) {
39 printf(" %s", buf); 39 printf(" %s", buf);
@@ -43,10 +43,10 @@ static void print_cgroup(int pid) {
43 fclose(fp); 43 fclose(fp);
44 free(file); 44 free(file);
45} 45}
46 46
47void cgroup(pid_t pid, int print_procs) { 47void cgroup(pid_t pid, int print_procs) {
48 pid_read(pid); 48 pid_read(pid);
49 49
50 // print processes 50 // print processes
51 int i; 51 int i;
52 for (i = 0; i < max_pids; i++) { 52 for (i = 0; i < max_pids; i++) {
@@ -60,4 +60,3 @@ void cgroup(pid_t pid, int print_procs) {
60 } 60 }
61 printf("\n"); 61 printf("\n");
62} 62}
63