summaryrefslogtreecommitdiffstats
path: root/TOOLS/stats-conv.py
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/stats-conv.py')
-rwxr-xr-xTOOLS/stats-conv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py
index 5f81836d8f..29a6b7ea7d 100755
--- a/TOOLS/stats-conv.py
+++ b/TOOLS/stats-conv.py
@@ -45,6 +45,9 @@ def get_event(event):
return G.events[event]
for line in [line.split("#")[0].strip() for line in open(filename, "r")]:
+ line = line.strip()
+ if not line:
+ continue
ts, event = line.split(" ", 1)
ts = int(ts) / 1000 # milliseconds
if G.start is None: