From: Steinar H. Gunderson Date: Thu, 27 Jul 2023 12:08:48 +0000 (+0200) Subject: Fix so that timeouts/stoppages between points do not make the between_points status... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=682a5b0238693a7124739423995a2b858b8c37b9;p=pkanalytics Fix so that timeouts/stoppages between points do not make the between_points status reset. --- diff --git a/ultimate.js b/ultimate.js index 7e54560..0040e7a 100644 --- a/ultimate.js +++ b/ultimate.js @@ -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.');