log_parser.py
changeset 65 8b50694f841e
parent 64 cdb6403c2498
child 83 a34e9f56ddda
--- a/log_parser.py	Mon Feb 09 11:05:53 2009 +0200
+++ b/log_parser.py	Mon Feb 09 11:46:17 2009 +0200
@@ -42,7 +42,7 @@
         """
             Parse the given lines, yielding LogEvents. 
         """
-        
+
         for offset, line in enumerate(lines) :
             # status lines
             if line.startswith('---') :
@@ -65,7 +65,7 @@
                 dtz = self.tz.localize(dt)
 
                 # offset?
-                if offset :
+                if starting_offset :
                     offset = starting_offset + offset
 
                 else :