if (fh == NULL)
{
char errbuf[1024];
- ERROR ("cgroups pluign: fopen (\"%s\") failed: %s",
+ ERROR ("cgroups plugin: fopen (\"%s\") failed: %s",
abs_path,
sstrerror (errno, errbuf, sizeof (errbuf)));
return (-1);
{
/* 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,