summaryrefslogtreecommitdiff
path: root/typr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'typr.sh')
-rwxr-xr-xtypr.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/typr.sh b/typr.sh
index c45a25d..cb404aa 100755
--- a/typr.sh
+++ b/typr.sh
@@ -106,7 +106,7 @@ typr_show_results () {
time_ns=$((now-start))
words="$(set -- $text ; printf "%s" "$#")"
- wpm="$((time_ns*words/60000000000))"
+ wpm="$((words*60000000000/time_ns))"
acc="$(typr_calculate_acc)"
printf "[%s;${areax}H%s" \
@@ -189,7 +189,7 @@ typr_main () {
while true; do
case "$(tty_readc)" in
- ' '|'') break;;
+ ''|'') break;;
esac
done
}