X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=1aef344f596219aa3287ffabedb118c1685a9e59;hb=be99a844a40d7037a910d37a894988b807631a6e;hp=38304fca58f84ef7cf98abe13675fa8abbb754c8;hpb=ac1aa530ff9c875068e69991f6cfa7f46ea10aaf;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 38304fca..1aef344f 100644 --- a/src/irq.c +++ b/src/irq.c @@ -131,7 +131,6 @@ static void irq_submit (unsigned int irq, counter_t value) vl.values = values; vl.values_len = 1; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "irq", sizeof (vl.plugin)); sstrncpy (vl.type, "irq", sizeof (vl.type)); @@ -191,8 +190,10 @@ static int irq_read (void) irq_value += value; } /* for (i) */ - irq_submit (irq, irq_value); + /* Force 32bit wrap-around */ + irq_submit (irq, irq_value % 4294967296ULL); } + fclose (fh); return (0);