]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_interrupts.c
multi-host rrdset and rrdfamily operations
[netdata.git] / src / proc_interrupts.c
index a79356217c2cbbbcf5d24dc082902994afd6d57e..8e97481641c065ed506208783074ec969a626df0 100644 (file)
@@ -146,7 +146,7 @@ int do_proc_interrupts(int update_every, usec_t dt) {
 
     // --------------------------------------------------------------------
 
-    st = rrdset_find_bytype("system", "interrupts");
+    st = rrdset_find_bytype_localhost("system", "interrupts");
     if(unlikely(!st)) st = rrdset_create("system", "interrupts", NULL, "interrupts", NULL, "System interrupts", "interrupts/s", 1000, update_every, RRDSET_TYPE_STACKED);
     else rrdset_next(st);
 
@@ -181,7 +181,7 @@ int do_proc_interrupts(int update_every, usec_t dt) {
             char id[50+1];
             snprintfz(id, 50, "cpu%d_interrupts", c);
 
-            st = rrdset_find_bytype("cpu", id);
+            st = rrdset_find_bytype_localhost("cpu", id);
             if(unlikely(!st)) {
                 char title[100+1];
                 snprintfz(title, 100, "CPU%d Interrupts", c);