diff --git a/scripts/analysis/parser/resources.py b/scripts/analysis/parser/resources.py index 94a1625834bee403d849bebbc3583fc569138c0c..64671b569f6e862471e179159b68315cadbd584c 100644 --- a/scripts/analysis/parser/resources.py +++ b/scripts/analysis/parser/resources.py @@ -31,6 +31,9 @@ class ResourcesLogParser(Parser): parts = line.split(None, 2) try: timestamp = float(parts[0]) + if len(parts) == 1: + # should only happen from time to time for the last line in the logfile + continue cpu_percent = float(parts[1]) memory_percent = float(parts[2]) ld.add_data(timestamp, cpu_percent=cpu_percent, memory_percent=memory_percent)