aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-25 00:45:40 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-25 00:45:40 +0000
commit0af3e1a1af86c52991af450107a73b036fc42cb0 (patch)
treee935e549e89d5bfbcfe2fc96c32c2593d60a0096 /src
parent886388f1449470b13b4f3749541314d34b6ef1c7 (diff)
downloadverteco-0af3e1a1af86c52991af450107a73b036fc42cb0.tar.gz
modbuslog: force interval wrap around
A hand edited file could miss the wrap around magic number and miss it.
Diffstat (limited to 'src')
-rw-r--r--src/modbuslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index 320f56b..d42a024 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -354,7 +354,7 @@ int main(int argc, char *argv[]) {
fscanf(intervalfile, "%d", &intervalid);
//handle 32bit signed overflow
- if (intervalid == 2147483647) {
+ if (intervalid >= 2147483647) {
intervalid = 0;
} else {
intervalid++;
/tr> 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9 No changes required