aboutsummaryrefslogtreecommitdiff
path: root/contrib/benchmark/collect.awk
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-27 14:09:32 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-27 14:09:44 +0200
commitc5b6efe0873727ca88c3bcbfbf2c8f692d97400f (patch)
treeb81976385795593880183ea6ce1d16dcfea6e78d /contrib/benchmark/collect.awk
parent59f386e0698e28ace6902f5694700b384d3dbf70 (diff)
downloadgnunet-c5b6efe0873727ca88c3bcbfbf2c8f692d97400f.tar.gz
gnunet-c5b6efe0873727ca88c3bcbfbf2c8f692d97400f.zip
benchmark: collect max correctly this time
Diffstat (limited to 'contrib/benchmark/collect.awk')
-rw-r--r--contrib/benchmark/collect.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index 62cbc69bc..b1e5977fd 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -49,7 +49,7 @@ function abs(v) {
49 url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n); 49 url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
50 } 50 }
51 max = url[$2][$4]["time_us_max"]; 51 max = url[$2][$4]["time_us_max"];
52 url[$2][$4]["time_us_max"] = (t > max ? t : max) 52 url[$2][$4]["time_us_max"] = (t/n > max ? t/n : max)
53 } 53 }
54} 54}
55 55