From 947c787283d2384b67ad6b0688e228b54b8843ce Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Fri, 25 Dec 2015 00:19:14 +0300 Subject: [PATCH] wrong conversion. l/min, not /hr --- web/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index 1957e92..debb7d8 100644 --- a/web/index.html +++ b/web/index.html @@ -89,7 +89,7 @@ ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 6, py(comb[1][i])); } ctx.textAlign = "left"; - ctx.fillText("l/h", px(tmin) + 4, py(hmax) + 8); + ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 8); } /* @ updates global var `hmax` */ @@ -101,7 +101,7 @@ dv = times[i+1][1] - times[i][1]; dt = times[i+1][0] - times[i][0]; if (dt != 0 && dv != 0) { - v = (dv / dt) * 360 ; /* Litres per hour */ + v = (dv / dt) * 600 ; /* Litres per min */ if (hmax < v) hmax = v; res.push([times[i][0], v]); } -- 2.39.2