From 01fc7dccced40a47ea027864173eb50ad936a04d Mon Sep 17 00:00:00 2001
From: Bruce Flynn <brucef@ssec.wisc.edu>
Date: Thu, 15 Oct 2015 15:24:15 +0000
Subject: [PATCH] Fix bad method call in trunc

---
 edosl0util/trunc.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/edosl0util/trunc.py b/edosl0util/trunc.py
index a68402b..7d944b2 100644
--- a/edosl0util/trunc.py
+++ b/edosl0util/trunc.py
@@ -6,7 +6,8 @@ from edosl0util.stream import PacketStream
 
 
 def trunc_stream(stream, start, end):
-    stream.seek(start)
+    stream.seek_to(start)
+    stream.seek_to_next_stamp()
 
     pkt = stream.next()
     while pkt.stamp <= end:
-- 
GitLab