donate-cpu-server.py: Fix wrong number of "+" diffs in latest results. (#1517)

This should fix the issue that the number after the "+" in the "Diff" column is always one too large.
This commit is contained in:
Sebastian 2018-12-10 20:05:34 +01:00 committed by amai2012
parent 6924522475
commit a4a3373838
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def latestReport(latestResults):
# cppcheck = line[9:]
elif line.startswith('count: '):
count = line.split(' ')[1:]
elif line.startswith('head '):
elif line.startswith('head ') and not line.startswith('head results:'):
added += 1
elif line.startswith(OLD_VERSION + ' '):
lost += 1