[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: RPS profiler: Fix computati
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: RPS profiler: Fix computation of history probabilities |
Date: |
Thu, 11 Apr 2019 16:01:24 +0200 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new d4442d0f7 RPS profiler: Fix computation of history probabilities
d4442d0f7 is described below
commit d4442d0f774b61709f3cfc3c51421096e3e3eb53
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Apr 11 16:00:51 2019 +0200
RPS profiler: Fix computation of history probabilities
---
src/rps/gnunet-rps-profiler.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index 1ab81c3fb..0138346e4 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -1192,6 +1192,7 @@ post_test_op (void *cls)
shutdown_task = NULL;
GNUNET_SCHEDULER_shutdown ();
}
+ GNUNET_free (cur_test_run.eval_probs_cache);
}
@@ -2365,6 +2366,7 @@ static void compute_probabilities (uint32_t peer_idx)
probs_as_str_size,
probs_as_str);
+ probs_as_str[0] = '\0';
for (i = 0; i < num_peers; i++)
{
probs_as_str_cpy = GNUNET_strndup (probs_as_str, probs_as_str_size);
@@ -2810,7 +2812,6 @@ post_profiler (struct RPSPeer *rps_peer)
rps_peer->index);
}
}
- GNUNET_free (cur_test_run.eval_probs_cache);
}
@@ -3000,7 +3001,7 @@ run (void *cls,
BIT(STAT_TYPE_VIEW_SIZE_AIM);
cur_test_run.have_collect_view = COLLECT_VIEW;
cur_test_run.eval_probs_cache = GNUNET_new_array (num_peers, double);
- memset (cur_test_run.eval_probs_cache, num_peers * sizeof (double), 0);
+ memset (&cur_test_run.eval_probs_cache, num_peers * sizeof (double), 0);
/* 'Clean' directory */
(void) GNUNET_DISK_directory_remove ("/tmp/rps/");
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: RPS profiler: Fix computation of history probabilities,
gnunet <=