Skip to content

Commit

Permalink
Generalize match for crashes and time_losses
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Aug 30, 2024
1 parent 5135d43 commit 43927b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,10 +933,10 @@ def shorten_hash(match):

# Parse line like this:
# Finished game 1 (stockfish vs base): 0-1 {White disconnects}
if "disconnects" in line or "connection stalls" in line:
if "disconnect" in line or "stall" in line:
result["stats"]["crashes"] += 1

if "on time" in line:
if "on time" in line or "timeout" in line:
result["stats"]["time_losses"] += 1

# fastchess WLD and pentanomial output parsing
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "gZThu9RSMeBHdNNAxVIMJ5iqJTXy/KdIWGoljEXhvuSp+ouqQiQTUJUj3YrSPziM", "games.py": "XXu26PHwvst2h+74QTayQqpbMU+6pY/W34EOgrwDx3zlqBmyTeqfGIYan0OM4jub"}
{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "gZThu9RSMeBHdNNAxVIMJ5iqJTXy/KdIWGoljEXhvuSp+ouqQiQTUJUj3YrSPziM", "games.py": "lGZdyKzIl9NL7NcjRaWEiSON6nHG0iu4OF+eGmDjV0FwfgashYOt9C5usoMJrwkR"}

0 comments on commit 43927b6

Please sign in to comment.