]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_interrupts.c
Merge pull request #1998 from ktsaou/master
[netdata.git] / src / proc_interrupts.c
index 25ffd8f0bab573dd790475da2203f756f6f88e3f..082e1f57b9c59233202d13834ae7fd49a5ff745a 100644 (file)
@@ -147,7 +147,8 @@ int do_proc_interrupts(int update_every, usec_t dt) {
     // --------------------------------------------------------------------
 
     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);
+    if(unlikely(!st)) st = rrdset_create_localhost("system", "interrupts", NULL, "interrupts", NULL, "System interrupts"
+                                                   , "interrupts/s", 1000, update_every, RRDSET_TYPE_STACKED);
     else rrdset_next(st);
 
     for(l = 0; l < lines ;l++) {
@@ -185,7 +186,8 @@ int do_proc_interrupts(int update_every, usec_t dt) {
             if(unlikely(!st)) {
                 char title[100+1];
                 snprintfz(title, 100, "CPU%d Interrupts", c);
-                st = rrdset_create("cpu", id, NULL, "interrupts", "cpu.interrupts", title, "interrupts/s", 1100 + c, update_every, RRDSET_TYPE_STACKED);
+                st = rrdset_create_localhost("cpu", id, NULL, "interrupts", "cpu.interrupts", title, "interrupts/s",
+                        1100 + c, update_every, RRDSET_TYPE_STACKED);
             }
             else rrdset_next(st);