From: Florian Forster Date: Fri, 1 May 2009 14:34:30 +0000 (+0200) Subject: irq plugin: Force 32bit wrap-around. X-Git-Tag: collectd-4.5.4~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d4319f8ec237226f85e05848650a0f14f5cf2ab;p=collectd.git irq plugin: Force 32bit wrap-around. --- diff --git a/src/irq.c b/src/irq.c index 38304fca..a7efd36f 100644 --- a/src/irq.c +++ b/src/irq.c @@ -191,8 +191,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);