diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-02-18 11:42:21 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-02-18 11:42:21 +0000 |
commit | 4cc09a3726c68f6488bc514d1f55c4c3d8654b7c (patch) | |
tree | f7122a457b583d1973621c91cdfbefe4a5db3106 /src/regex | |
parent | 660d47b2bd0639533c1af0bd847788aecaf975bb (diff) | |
download | gnunet-4cc09a3726c68f6488bc514d1f55c4c3d8654b7c.tar.gz gnunet-4cc09a3726c68f6488bc514d1f55c4c3d8654b7c.zip |
- verboser log, faster start
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/gnunet-regex-profiler.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c index 14f9933cb..a0516fe90 100644 --- a/src/regex/gnunet-regex-profiler.c +++ b/src/regex/gnunet-regex-profiler.c | |||
@@ -1061,7 +1061,9 @@ arm_start_cb (void *cls, enum GNUNET_ARM_ProcessStatus result) | |||
1061 | if (peer_cnt < (num_peers - 1)) | 1061 | if (peer_cnt < (num_peers - 1)) |
1062 | { | 1062 | { |
1063 | next_p = (++peer_cnt % num_peers); | 1063 | next_p = (++peer_cnt % num_peers); |
1064 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, | 1064 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply( |
1065 | GNUNET_TIME_UNIT_MILLISECONDS, | ||
1066 | 200), | ||
1065 | &announce_next_regex, | 1067 | &announce_next_regex, |
1066 | (void *) (long) next_p); | 1068 | (void *) (long) next_p); |
1067 | } | 1069 | } |
@@ -1650,10 +1652,14 @@ controller_event_cb (void *cls, | |||
1650 | { | 1652 | { |
1651 | fflush (stdout); | 1653 | fflush (stdout); |
1652 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); | 1654 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); |
1653 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1655 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1654 | "%u links established in %s\n", | 1656 | "%u links established in %s\n", |
1655 | num_links, | 1657 | num_links, |
1656 | GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO)); | 1658 | GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO)); |
1659 | prof_time = GNUNET_TIME_relative_divide(prof_time, num_links); | ||
1660 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
1661 | "Average of %s per connection\n", | ||
1662 | GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO)); | ||
1657 | result = GNUNET_OK; | 1663 | result = GNUNET_OK; |
1658 | GNUNET_free (peer_handles); | 1664 | GNUNET_free (peer_handles); |
1659 | 1665 | ||