@cryptotaxi247 / netdata-1 / commits / d734c9572

fix to find root qdisc

Stefan Forstenlechner committed Jan 4, 2017 at 22:29 UTC d734c9572eb95aff3029609d84a840272bc601cc
1 file changed +1 -1
src/plugin_tc.c
+1 -1
@@ -248,7 +248,7 @@ static inline void tc_device_commit(struct tc_device *d) {
248 for(c = d->classes ; c ; c = c->next) {
249 // debug(D_TC_LOOP, "TC: Device '%s', class '%s', isLeaf=%d, HasParent=%d, Seen=%d", d->name?d->name:d->id, c->name?c->name:c->id, c->isleaf, c->hasparent, c->seen);
250 debug(D_TC_LOOP, "TC: Device '%s', class '%s', isleaf=%s, isqdisc=%s, hasparent=%s bytes=%d, packtes=%d, dropped=%d, tokens=%d, ctokens=%d", d->name?d->name:d->id, c->name?c->name:c->id, c->isleaf?"true":"false", c->isqdisc?"true":"false", c->hasparent?"true":"false", c->bytes, c->packets, c->dropped, c->tokens, c->ctokens);
251 - if(unlikely(c->updated && c->isqdisc && !c->hasparent)) {
251 + if(unlikely(c->updated && c->isqdisc && !c->parentid)) {
252 active_qos = 1;
253 bytes_sum = c->bytes;
254 packets_sum = c->packets;