]> arthur.barton.de Git - netdata.git/commitdiff
fixed a bug where cgroups under user/ were by default enabled
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 27 Dec 2016 20:09:47 +0000 (22:09 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 27 Dec 2016 20:09:47 +0000 (22:09 +0200)
src/sys_fs_cgroup.c

index 21ace9a9d7df45d792ecea43056d2c29aa215cc5..2fc97cf9636c028b3927c3a54ce6c53f6dc59be2 100644 (file)
@@ -693,7 +693,7 @@ struct cgroup *cgroup_add(const char *id) {
                 !strcmp(chart_id, "system") ||
                 !strcmp(chart_id, "machine") ||
                 // starts with them
-                (len >  6 && !strncmp(chart_id, "user/", 6)) ||
+                (len >  5 && !strncmp(chart_id, "user/", 5)) ||
                 (len > 11 && !strncmp(chart_id, "user.slice/", 11)) ||
                 // ends with them
                 (len >  5 && !strncmp(&chart_id[len -  5], ".user", 5)) ||