@cryptotaxi247 / netdata-1 / commits / d5b204f7e

Remove an unnecessary check for cgroup v1 (#11137)

Vladimir Kobal committed May 24, 2021 at 15:02 UTC d5b204f7e4dcfe58e7fdf9b5eecf3b65eac6c885
1 file changed -2
collectors/cgroups.plugin/sys_fs_cgroup.c
-2
@@ -168,8 +168,6 @@ static enum cgroups_type cgroups_try_detect_version()
168 if (!statfs(filename, &fsinfo)) {
169 if (fsinfo.f_type == CGROUP2_SUPER_MAGIC)
170 return CGROUPS_V2;
171 - if (fsinfo.f_type == CGROUP_SUPER_MAGIC)
172 - return CGROUPS_V1;
171 }
172 #endif
173