X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fplugin_tc.c;h=7dcfedb33e56d6db1e0a60bc55b8b39fdef44360;hb=a4be7b4e24233a66f47a428b0cd256993328352b;hp=35763d316aceb6e05ed556266011d16abb372c17;hpb=e660d3e15b274066157947ab0f4f8f3686dcaecd;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