diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-06-01 23:38:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 23:38:41 +0300 |
commit | 81832edce2b2c0cb8a76ae1d69b99086c974005c (patch) | |
tree | 56dede491cd093e36cd1cc278ea2da16d810e3fe /collectors/cgroups.plugin/sys_fs_cgroup.c | |
parent | 7784a16cc7af8260bb8877873a60d7dc6d2c9e73 (diff) |
coverity fixes about statsd; removal of strsame (#13049)
Diffstat (limited to 'collectors/cgroups.plugin/sys_fs_cgroup.c')
-rw-r--r-- | collectors/cgroups.plugin/sys_fs_cgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/cgroups.plugin/sys_fs_cgroup.c b/collectors/cgroups.plugin/sys_fs_cgroup.c index 40dafc2686..5676ef8ca1 100644 --- a/collectors/cgroups.plugin/sys_fs_cgroup.c +++ b/collectors/cgroups.plugin/sys_fs_cgroup.c @@ -3659,7 +3659,7 @@ static inline void update_cpu_limits2(struct cgroup *cg) { cg->cpuset_cpus = get_system_cpus(); char *s = "max\n\0"; - if(strsame(s, procfile_lineword(ff, 0, 0)) == 0){ + if(strcmp(s, procfile_lineword(ff, 0, 0)) == 0){ cg->cpu_cfs_quota = cg->cpu_cfs_period * cg->cpuset_cpus; } else { cg->cpu_cfs_quota = str2ull(procfile_lineword(ff, 0, 0)); @@ -3707,7 +3707,7 @@ static inline int update_memory_limits(char **filename, RRDSETVAR **chart_var, u return 0; } char *s = "max\n\0"; - if(strsame(s, buffer) == 0){ + if(strcmp(s, buffer) == 0){ *value = UINT64_MAX; rrdsetvar_custom_chart_variable_set(*chart_var, (calculated_number)(*value / (1024 * 1024))); return 1; |