From 99c57b9c19856f1ac9afd517cf9a475eb1dc0308 Mon Sep 17 00:00:00 2001 From: Martin Kompf Date: Sun, 30 Oct 2016 18:45:07 +0100 Subject: [PATCH] Pause detection fixed --- leakdetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leakdetect.py b/leakdetect.py index 5421eec..2308229 100755 --- a/leakdetect.py +++ b/leakdetect.py @@ -62,7 +62,7 @@ def detect_pauses(data): for (ts, counter) in data: if counter > start_counter: duration = ts - start_time - if duration > min_pause: + if duration >= min_pause: result.append({'start' : start_time, 'duration' : duration}) start_time = ts start_counter = counter