generated from me/template-mit
ollama-test, fix the time comparison to look for the lowest.
This commit is contained in:
1 parent
a47d1ab9f8
commit
933e00556c
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user