]> git.sesse.net Git - pkanalytics/blobdiff - ultimate.js
Fix so that timeouts/stoppages between points do not make the between_points status...
[pkanalytics] / ultimate.js
index 7e54560141821432b3a65f154dca8168a3b08fdd..0040e7a581c151024b51d227610abc3cd4dcd5d5 100644 (file)
@@ -370,7 +370,9 @@ function calc_stats(json, filters) {
                        // Liveness management
                        if (type === 'pull' || type === 'their_pull' || type === 'restart') {
                                live_since = t;
-                               between_points = false;
+                               if (type !== 'restart') {
+                                       between_points = false;
+                               }
                        } else if (type === 'catch' && last_pull_was_ours === null) {
                                // Someone forgot to add the pull, so we'll need to wing it.
                                console.log(match['description'] + ' ' + format_time(t) + ': Missing pull on ' + our_score + '\u2013' + their_score + '; pretending to have one.');