X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=59d94129097f8bd3c882ad2cdf024d57d03ac359;hb=730a492638bd85b0c319cef330c626292ef83b59;hp=c96335feb62baeacd88435fcc65c91c6375920b2;hpb=9dd737c8851cf2706b4823dc886e1311854ede64;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index c96335f..59d9412 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1395,7 +1395,10 @@ let update_sparkline = function(data) { scores.push(last_score); } if (data['score']) { - scores.push(compute_plot_score(data['score'])); + let score = compute_plot_score(data['score']); + scores.push(score); + if (score < min_score) min_score = score; + if (score > max_score) max_score = score; } const h = scorespark.getBoundingClientRect().height;