summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtypr.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/typr.sh b/typr.sh
index 82678e6..d1748ca 100755
--- a/typr.sh
+++ b/typr.sh
@@ -62,6 +62,10 @@ typr_draw_time () {
case "$test_type" in
"time")
time_ns=$((1000000000*$test_length - $time_ns))
+ [ "$time_ns" -lt "0" ] && {
+ [ "$(((time_ns / 500000000) % 2))" = "0" ] && printf "[$((areay - 1));${areax}H%s" " " && return 1
+ time_ns=0
+ }
;;
esac