ollama-test, fix the time comparison to look for the lowest.

This commit is contained in:
me committed 2026-10-24 14:30:07 -07:00
1 parent a47d1ab9f8
commit 933e00556c
1 file changed
+1 -1
+1 -1
View File
@@ -1767,7 +1767,7 @@ function ollama_benchmark() {
[[ -n "$DEBUG" ]] && echo "DEBUG: champ_time_num=$champ_time_num, time=$time" [[ -n "$DEBUG" ]] && echo "DEBUG: champ_time_num=$champ_time_num, time=$time"
if [[ -z "$champ_time_num" ]] \ if [[ -z "$champ_time_num" ]] \
|| awk -v a="$time" -v b="$champ_time_num" 'BEGIN { exit !(a > b) }' || awk -v a="$time" -v b="$champ_time_num" 'BEGIN { exit !(a < b) }'
then then
[[ -n "$DEBUG" ]] && echo "DEBUG: New time champ!" [[ -n "$DEBUG" ]] && echo "DEBUG: New time champ!"
champ_time_num="$time" champ_time_num="$time"