]> www.average.org Git - pulsecounter.git/blobdiff - web/index.html
wrong conversion. l/min, not /hr
[pulsecounter.git] / web / index.html
index 1957e92e02f317b645c36bcdc36d4329b43469a9..debb7d8b73aa02dcdb50c35a8292e4891625ebe7 100644 (file)
@@ -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` */
       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]);
       }