From: Florian Dold Date: Thu, 27 Sep 2018 12:09:32 +0000 (+0200) Subject: benchmark: collect max correctly this time X-Git-Tag: v0.11.0~241^2~21^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5b6efe0873727ca88c3bcbfbf2c8f692d97400f;p=oweals%2Fgnunet.git benchmark: collect max correctly this time --- 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) { url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n); } max = url[$2][$4]["time_us_max"]; - url[$2][$4]["time_us_max"] = (t > max ? t : max) + url[$2][$4]["time_us_max"] = (t/n > max ? t/n : max) } }