]> arthur.barton.de Git - netdata.git/blobdiff - src/rrd2json.c
replace strcmp() with strsame() and procfile improvements
[netdata.git] / src / rrd2json.c
index 067475006d03675171db9f37a37120db4cd274ac..02c4547b718b74374f4124f536e4c8fd28602b91 100644 (file)
@@ -561,7 +561,7 @@ void rrdr_disable_not_selected_dimensions(RRDR *r, const char *dims)
 
         // find it and enable it
         for(c = 0, d = r->st->dimensions; d ;c++, d = d->next) {
-            if(unlikely((hash == d->hash && !strcmp(d->id, tok)) || !strcmp(d->name, tok))) {
+            if(unlikely((hash == d->hash && !strsame(d->id, tok)) || !strsame(d->name, tok))) {
                 r->od[c] &= ~RRDR_HIDDEN;
 
                 // since the user needs this dimension