@cryptotaxi247 / netdata-1 / commits / 19f044647

exclude *.mount and *.swap from RHEL cgroups

Costa Tsaousis committed May 3, 2016 at 10:03 UTC 19f044647492240edb31d05a4dab8e81cb02a8f5
1 file changed +2
src/sys_fs_cgroup.c
+2
@@ -667,7 +667,9 @@ struct cgroup *cgroup_add(const char *id) {
667 (len > 11 && !strncmp(chart_id, "user.slice/", 11)) ||
668 // ends with them
669 (len > 5 && !strncmp(&chart_id[len - 5], ".user", 5)) ||
670 + (len > 5 && !strncmp(&chart_id[len - 5], ".swap", 5)) ||
671 (len > 6 && !strncmp(&chart_id[len - 6], ".slice", 6)) ||
672 + (len > 6 && !strncmp(&chart_id[len - 6], ".mount", 6)) ||
673 (len > 8 && !strncmp(&chart_id[len - 8], ".session", 8)) ||
674 (len > 8 && !strncmp(&chart_id[len - 8], ".service", 8)) ||
675 (len > 10 && !strncmp(&chart_id[len - 10], ".partition", 10))