summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-02-23 21:45:33 +0100
committerPaweł Redman <pawel.redman@gmail.com>2018-02-23 21:45:33 +0100
commit61d799871d3662b7f4282820c0423b6ae524a927 (patch)
tree03c041658cfaa785ac0641d6c0ac4689e7910bbb
parenteddca01a8fcbcfb0e3bd1e2498f06cabf9ec80c8 (diff)
Ignore 999 pings.
-rwxr-xr-xstalinizer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/stalinizer.py b/stalinizer.py
index 2559c0c..af580f9 100755
--- a/stalinizer.py
+++ b/stalinizer.py
@@ -66,6 +66,8 @@ class StateTracker:
def ev_endgame_stat(self, gametime, score, ping):
if score == "0":
return
+ if ping == "999":
+ return
game_length = parse_gametime(gametime)
self.pings.append((int(ping), game_length))