aboutsummaryrefslogtreecommitdiffstats
path: root/src/modbuslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modbuslog.c')
-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++;