From 6c665653ba28e9296e0f89d07faceeb859f52872 Mon Sep 17 00:00:00 2001 From: flightlessmango Date: Thu, 27 Jun 2024 14:53:25 +0200 Subject: [PATCH] mangoplot: look for header further down than 4 rows Co-authored-by: Adel KARA SLIMANE --- bin/mangoplot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mangoplot.py b/bin/mangoplot.py index 7d82b3a..ce579d4 100755 --- a/bin/mangoplot.py +++ b/bin/mangoplot.py @@ -195,8 +195,9 @@ class BenchmarkFile: found_fps_column = False for row_number, row_content in enumerate(reader): - if row_number > 4: - # if we're past the 4th row, break the loop + if row_number > 100: + # did not find the row that starts with the + # 'fps' column up until here. give up. break if "fps" in row_content: