From 5d5c942576bc8e9649cff4441c1b2ae90bed22ac Mon Sep 17 00:00:00 2001 From: Costa Tsaousis Date: Sat, 30 Apr 2016 03:28:14 +0300 Subject: [PATCH] cgroups: fixed typo --- src/sys_fs_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys_fs_cgroup.c b/src/sys_fs_cgroup.c index 2e2437e9..fbaf1318 100644 --- a/src/sys_fs_cgroup.c +++ b/src/sys_fs_cgroup.c @@ -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); -- 2.39.2