X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fproc_interrupts.c;h=082e1f57b9c59233202d13834ae7fd49a5ff745a;hb=909e26f825bc1f6f907231761412c885331fec7e;hp=25ffd8f0bab573dd790475da2203f756f6f88e3f;hpb=5b9054a89f2be6b0d47eaba8fc7cd5e923a9d35a;p=netdata.git diff --git a/src/proc_interrupts.c b/src/proc_interrupts.c index 25ffd8f0..082e1f57 100644 --- a/src/proc_interrupts.c +++ b/src/proc_interrupts.c @@ -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);