X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=web%2Findex.html;h=debb7d8b73aa02dcdb50c35a8292e4891625ebe7;hp=1957e92e02f317b645c36bcdc36d4329b43469a9;hb=947c787283d2384b67ad6b0688e228b54b8843ce;hpb=1257635f54fe7f493dc4485cd830119affeaae7f 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]); }