X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcgroups.c;h=17b12d0435150189bba3fe15ab9a6fd66d57be76;hb=14439845047df76a968be2c1ac852d6c701332a9;hp=a28f4e94d28ecaca3ed10e289b1293f023412b9b;hpb=c94e448d41d1852c2dd6ca4dc402ca6e225b5f37;p=collectd.git diff --git a/src/cgroups.c b/src/cgroups.c index a28f4e94..17b12d04 100644 --- a/src/cgroups.c +++ b/src/cgroups.c @@ -221,8 +221,9 @@ static int cgroups_read (void) { /* Find the cgroup mountpoint which contains the cpuacct * controller. */ - if (strcmp(mnt_ptr->type, "cgroup") != 0 || - !cu_mount_getoptionvalue(mnt_ptr->options, "cpuacct")) + if ((strcmp(mnt_ptr->type, "cgroup") != 0) + || !cu_mount_checkoption(mnt_ptr->options, + "cpuacct", /* full = */ 1)) continue; walk_directory (mnt_ptr->dir, read_cpuacct_root,