projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ace6b
)
irq plugin: Force 32bit wrap-around.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000
(16:34 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 1 May 2009 14:34:30 +0000
(16:34 +0200)
src/irq.c
patch
|
blob
|
history
diff --git
a/src/irq.c
b/src/irq.c
index
38304fc
..
a7efd36
100644
(file)
--- 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);