@cryptotaxi247 / netdata-1 / commits / b562b1a0d

fix bug that prevents cgroups from being collected; fixes #833

Costa Tsaousis (ktsaou) committed Aug 24, 2016 at 14:03 UTC b562b1a0dbc916e10bdea026122b2627aca614d3
1 file changed +2 -2
src/sys_fs_cgroup.c
+2 -2
@@ -802,8 +802,8 @@ void found_subdir_in_dir(const char *dir) {
802 int find_dir_in_subdirs(const char *base, const char *this, void (*callback)(const char *)) {
803 debug(D_CGROUP, "searching for directories in '%s'", base);
804
805 - int ret = 0;
806 - int enabled = 0;
805 + int ret = -1;
806 + int enabled = -1;
807 if(!this) this = base;
808 size_t dirlen = strlen(this), baselen = strlen(base);
809 const char *relative_path = &this[baselen];