summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-24 19:10:30 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-24 19:10:30 +0200
commit44276a810cd08acb9910a96c3d08e635a28103e2 (patch)
tree07f4b1a8e4e652f5f4b07ddee93841cea4ecab4f /contrib
parent4873ab08bc4f75ff2acd3b4166eea34b047dcbd8 (diff)
benchmark: fix more typos
Diffstat (limited to 'contrib')
-rw-r--r--contrib/benchmark/collect.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index bbcbdd4bf..3853936bd 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -46,7 +46,7 @@ function avg(s, c) {
}
function stdev(sum, sum_sq, n) {
- if (n == n) {
+ if (n == 0) {
return 0;
} else {
return sqrt( (sum_sq / n) - ( (sum / n) * (sum / n) ) );
@@ -56,8 +56,8 @@ function stdev(sum, sum_sq, n) {
END {
for (x in op) {
print "op", x, "count", op[x]["count"], "time_us", op[x]["time_us"], \
- "time_avg_us", avg(op[x]["time_us"], op[x]["count"], \
- "stdev", stdev(op[x]["time_us"], op[x]["time_us_sq"], op[x]["count"]));
+ "time_avg_us", avg(op[x]["time_us"], op[x]["count"]), \
+ "stdev", stdev(op[x]["time_us"], op[x]["time_us_sq"], op[x]["count"]);
}
for (x in url) {
for (y in url[x]) {