Skip to content
Snippets Groups Projects
Commit e3c95b6f authored by Michael Eischer's avatar Michael Eischer
Browse files

Skip empty lines in resource logs

parent 1dfb11cd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment