summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-11-09 09:09:56 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-11-09 09:09:56 +0100
commit54512f2f43c6d3c4ba737725070b73b844c5ead5 (patch)
tree4d9be69229c71c2c0d8ff24992b5f67a19d06efc
parentb67a31faf178faf16b114f7774671058a2176ec0 (diff)
DataProcessor: Warn for positive and negative offset errors
-rw-r--r--lib/lennart/DataProcessor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py
index b46315a..8341b9c 100644
--- a/lib/lennart/DataProcessor.py
+++ b/lib/lennart/DataProcessor.py
@@ -111,7 +111,7 @@ class DataProcessor:
)
logger.debug(f"Start/End offsets: {start_offset} / {end_offset}")
- if end_offset > 10:
+ if abs(end_offset) > 10:
logger.warning(
f"synchronization end_offset == {end_offset}. It should be no more than a few seconds."
)