Skip to content

Commit

Permalink
cgroups: fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Apr 30, 2016
1 parent e42407b commit 5d5c942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys_fs_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ void update_cgroup_charts(int update_every) {
if(cg->id[0] == '\0')
strcpy(type, "cgroup_host");
else if(cg->id[0] == '/')
snprintf(type, RRD_ID_LENGTH_MAX, "cgroup_%s", "host");
snprintf(type, RRD_ID_LENGTH_MAX, "cgroup_%s", cg->chart_id);
else
snprintf(type, RRD_ID_LENGTH_MAX, "cgroup_%s", cg->chart_id);

Expand Down

0 comments on commit 5d5c942

Please sign in to comment.