X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fplugin_tc.c;h=7dcfedb33e56d6db1e0a60bc55b8b39fdef44360;hb=7154c7949671358591e421ca4ef4412f4469aeff;hp=35763d316aceb6e05ed556266011d16abb372c17;hpb=719ba47914bad933bf4503d3340b9543d5e631a6;p=netdata.git diff --git a/src/plugin_tc.c b/src/plugin_tc.c index 35763d31..7dcfedb3 100644 --- a/src/plugin_tc.c +++ b/src/plugin_tc.c @@ -1003,7 +1003,7 @@ void *tc_main(void *ptr) { rrddim_set(stcpu, "system", thread.ru_stime.tv_sec * 1000000ULL + thread.ru_stime.tv_usec); rrdset_done(stcpu); - if(unlikely(!sttime)) stcpu = rrdset_find_localhost("netdata.plugin_tc_time"); + if(unlikely(!sttime)) sttime = rrdset_find_localhost("netdata.plugin_tc_time"); if(unlikely(!sttime)) { sttime = rrdset_create_localhost("netdata", "plugin_tc_time", NULL, "tc.helper", NULL , "NetData TC script execution", "milliseconds/run", 135001