int ret = cgroup_read_node_uint32(buf, CLASSID_FILE_NAME, classid);
if (ret < 0) {
- STC_LOGE("Can't read classid from cgroup %s", buf); //LCOV_EXCL_LINE
*classid = STC_UNKNOWN_CLASSID;
return STC_ERROR_NO_DATA;
}
return STC_UNKNOWN_CLASSID; //LCOV_EXCL_LINE
}
- if (!strcmp(app_id, STC_BACKGROUND_APP_ID))
+ if (!strcmp(app_id, STC_TOTAL_BACKGROUND))
return STC_BACKGROUND_APP_CLASSID;
if (!strcmp(app_id, STC_TOTAL_DATACALL))
return STC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- if (!strcmp(app_id, STC_BACKGROUND_APP_ID))
- path_to_net_cgroup_dir = STC_CGROUP_NETWORK;
- else if (strstr(app_id, STC_BACKGROUND_APP_SUFFIX))
+ if (strstr(app_id, STC_BACKGROUND_APP_SUFFIX))
path_to_net_cgroup_dir = BACKGROUND_CGROUP_NETWORK;
else if (strstr(app_id, STC_TETHERING_APP_SUFFIX))
path_to_net_cgroup_dir = TETHERING_CGROUP_NETWORK;