From 682a5b0238693a7124739423995a2b858b8c37b9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 27 Jul 2023 14:08:48 +0200 Subject: [PATCH] Fix so that timeouts/stoppages between points do not make the between_points status reset. --- ultimate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.'); -- 2.39.2