From 5b69b06f18fbdbf427a993a412ddb1afb1502cd8 Mon Sep 17 00:00:00 2001 From: quackmore Date: Fri, 21 Aug 2020 19:10:19 +0200 Subject: [PATCH] bug fixing --- web/history.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/history.js b/web/history.js index 61e0243..6e6d7d5 100644 --- a/web/history.js +++ b/web/history.js @@ -13,7 +13,6 @@ function update_page() { setTimeout(function () { createChart(); }, 500); - } $('#history_refresh').on('click', function () { @@ -256,7 +255,7 @@ function max_array_val(array) { array.forEach(function (element) { if (element.y > max_val) max_val = element.y; - }) + }); return max_val; } @@ -265,6 +264,6 @@ function min_array_val(array) { array.forEach(function (element) { if (element.y < min_val) min_val = element.y; - }) + }); return min_val; } \ No newline at end of file