diff options
author | davidovski <david@davidovski.xyz> | 2023-12-27 19:30:19 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-12-27 19:30:19 +0000 |
commit | 46dc0722229aa8468a01642151300df007eea271 (patch) | |
tree | de73c9bc9ced3d59b3bdcd2883183cbb51e2b2d2 /typr.sh | |
parent | f375439b5d11400b26f7bf939ab7821ef787fe54 (diff) |
fix wpm calculation
Diffstat (limited to 'typr.sh')
-rwxr-xr-x | typr.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |