gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: benchmark: fix more typos


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: benchmark: fix more typos
Date: Mon, 24 Sep 2018 19:12:00 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 44276a810 benchmark: fix more typos
44276a810 is described below

commit 44276a810cd08acb9910a96c3d08e635a28103e2
Author: Florian Dold <address@hidden>
AuthorDate: Mon Sep 24 19:10:30 2018 +0200

    benchmark: fix more typos
---
 contrib/benchmark/collect.awk | 6 +++---
 1 file 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]) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]