aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/DataStructures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/DataStructures.py b/src/argaze/DataStructures.py
index 51d245c..44c2583 100644
--- a/src/argaze/DataStructures.py
+++ b/src/argaze/DataStructures.py
@@ -91,7 +91,7 @@ class TimeStampedBuffer(collections.OrderedDict):
ts_list = list(self.keys())
last_before_index = bisect.bisect_left(ts_list, ts) - 1
- if last_before_index > 0:
+ if last_before_index >= 0:
return ts_list[last_before_index]