]> arthur.barton.de Git - netdata.git/commitdiff
exclude *.mount and *.swap from RHEL cgroups
authorCosta Tsaousis <costa@tsaousis.gr>
Tue, 3 May 2016 07:03:06 +0000 (10:03 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Tue, 3 May 2016 07:03:06 +0000 (10:03 +0300)
src/sys_fs_cgroup.c

index a5b566cafde1df24880b148f1207637017b9349c..651febd1ce18c5b75e2f864ca18fcd9773b67529 100644 (file)
@@ -667,7 +667,9 @@ struct cgroup *cgroup_add(const char *id) {
                                (len > 11 && !strncmp(chart_id, "user.slice/", 11)) ||
                                // ends with them
                                (len >  5 && !strncmp(&chart_id[len -  5], ".user", 5)) ||
+                               (len >  5 && !strncmp(&chart_id[len -  5], ".swap", 5)) ||
                                (len >  6 && !strncmp(&chart_id[len -  6], ".slice", 6)) ||
+                               (len >  6 && !strncmp(&chart_id[len -  6], ".mount", 6)) ||
                                (len >  8 && !strncmp(&chart_id[len -  8], ".session", 8)) ||
                                (len >  8 && !strncmp(&chart_id[len -  8], ".service", 8)) ||
                                (len > 10 && !strncmp(&chart_id[len - 10], ".partition", 10))