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: ugh, fix stdev a


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: benchmark: ugh, fix stdev again
Date: Mon, 24 Sep 2018 19:32:26 +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 11abc0ca8 benchmark: ugh, fix stdev again
11abc0ca8 is described below

commit 11abc0ca801911ab584798d95f7c955933050226
Author: Florian Dold <address@hidden>
AuthorDate: Mon Sep 24 19:30:55 2018 +0200

    benchmark: ugh, fix stdev again
---
 contrib/benchmark/collect.awk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index 12ece0ebf..b91a978b6 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -31,13 +31,17 @@
     t = $6;
     op[$2]["count"] += n;
     op[$2]["time_us"] += t;
-    op[$2]["time_us_sq"] += n * (t/n) * (t/n);
+    if (n > 0) {
+      op[$2]["time_us_sq"] += n * (t/n) * (t/n);
+    }
   } else if ($1 == "url") {
     n = $6;
     t = $8;
     url[$2][$4]["count"] += n;
     url[$2][$4]["time_us"] += t;
-    url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
+    if (n > 0) {
+      url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
+    }
   }
 }
 

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



reply via email to

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