summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezbench.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezbench.sh b/ezbench.sh
index af4a7cf..7bf48e4 100755
--- a/ezbench.sh
+++ b/ezbench.sh
@@ -406,7 +406,7 @@ do
# finish with the geometric mean (when we have multiple tests)
if [ $t -gt 1 ]; then
- fpsALL=$(awk '{r = 1; for(i=1; i<=NF; i++) { r *= $i } print exp(log(r) / NF) }' <<< $fpsALL)
+ fpsALL=$(awk '{r=0; for(i=1; i<=NF; i++) { r += log($i) } print exp(r / NF) }' <<< $fpsALL)
if [ -z "${testPrevFps[-1]}" ]; then
testPrevFps[-1]=$fpsALL
fi