From e3643656efa9a97b17ad7dbc1342c2504e065707 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 8 Oct 2016 14:12:33 -0400 Subject: [PATCH] Update updateWPM --- js/type.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/js/type.js b/js/type.js index 86ef5d1..785089b 100644 --- a/js/type.js +++ b/js/type.js @@ -570,15 +570,8 @@ function updateWPM() { let words = typed.split(/[\s,\.]+/).length; let seconds = elapsedTime / 1000; - if (seconds >= 60) { - // update real WPM - let minutes = seconds / 60; - $("#wpm").text(Math.round(words / minutes)); - } else { - // extrapolate forwards - let scaledWords = words / (seconds / 60); - $("#wpm").text(Math.round(scaledWords)); - } + let minutes = seconds / 60; + $("#wpm").text(Math.round(words / minutes)); } function pause() {