From: Eugene Crosser Date: Thu, 24 Dec 2015 21:19:14 +0000 (+0300) Subject: wrong conversion. l/min, not /hr X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=commitdiff_plain;h=947c787283d2384b67ad6b0688e228b54b8843ce;ds=sidebyside wrong conversion. l/min, not /hr --- 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]); }