From: Costa Tsaousis (ktsaou) Date: Sun, 28 Feb 2016 02:53:19 +0000 (+0200) Subject: tc: non-HTB classes were missed: fixed X-Git-Tag: v1.0.0~3 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=54d9ad67e4ab8f47f30871dd015c65ac2dd18ec5;p=netdata.git tc: non-HTB classes were missed: fixed --- diff --git a/src/plugin_tc.c b/src/plugin_tc.c index ee942729..f02b7078 100755 --- a/src/plugin_tc.c +++ b/src/plugin_tc.c @@ -557,7 +557,10 @@ void *tc_main(void *ptr) // clear the last class class = NULL; - if(words[1] && words[2] && words[3] && words[4] && (strcmp(words[3], "parent") == 0 || strcmp(words[3], "root") == 0)) { + // words[1] : class type + // words[2] : N:XX + // words[3] : parent or root + if(words[1] && words[2] && words[3] && (strcmp(words[3], "parent") == 0 || strcmp(words[3], "root") == 0)) { //char *type = words[1]; // the class: htb, fq_codel, etc // we are only interested for HTB classes