diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
commit | 46a63dc665f31fa7d42639ab6adabbdb1af239c8 (patch) | |
tree | 6c3e58a7f57d6d3ee44aa6cd2808b5458d75de4b /src/nse | |
parent | 4848a679018f9e864cd277345191ad8f1000b5ff (diff) | |
download | gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.tar.gz gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.zip |
renaming GNUNET_TIME_relative_get_forever and GNUNET_TIME_absolute_get_forever methods, adding underscore, to make it clear that the respective #defines should be used instead; replacing use of direct function calls with respective macros where applicable; adding additional GNUNET_TIME_relative_get_xxx-functions to avoid calls to GNUNET_TIME_relative_multiply, which turn out to have gotten performance-relevant
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 2 | ||||
-rw-r--r-- | src/nse/nse_profiler_test.conf | 30 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 4748ed370..4a4bea5ed 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -896,7 +896,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
896 | &connect_cb, &my_cb, NULL, hosts); | 896 | &connect_cb, &my_cb, NULL, hosts); |
897 | GNUNET_assert (pg != NULL); | 897 | GNUNET_assert (pg != NULL); |
898 | shutdown_handle = | 898 | shutdown_handle = |
899 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_get_forever (), | 899 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, |
900 | &shutdown_task, NULL); | 900 | &shutdown_task, NULL); |
901 | } | 901 | } |
902 | 902 | ||
diff --git a/src/nse/nse_profiler_test.conf b/src/nse/nse_profiler_test.conf index 0185ed217..3a3217dbc 100644 --- a/src/nse/nse_profiler_test.conf +++ b/src/nse/nse_profiler_test.conf | |||
@@ -104,7 +104,7 @@ AUTOSTART = NO | |||
104 | AUTOSTART = NO | 104 | AUTOSTART = NO |
105 | 105 | ||
106 | [testing] | 106 | [testing] |
107 | NUM_PEERS = 4000 | 107 | NUM_PEERS = 2000 |
108 | WEAKRANDOM = YES | 108 | WEAKRANDOM = YES |
109 | TOPOLOGY = NONE | 109 | TOPOLOGY = NONE |
110 | #CONNECT_TOPOLOGY = SMALL_WORLD_RING | 110 | #CONNECT_TOPOLOGY = SMALL_WORLD_RING |
@@ -122,7 +122,7 @@ HOSTKEYSFILE = hostkeys.dat | |||
122 | MAX_CONCURRENT_SSH = 20 | 122 | MAX_CONCURRENT_SSH = 20 |
123 | USE_PROGRESSBARS = YES | 123 | USE_PROGRESSBARS = YES |
124 | PEERGROUP_TIMEOUT = 1000 s | 124 | PEERGROUP_TIMEOUT = 1000 s |
125 | TOPOLOGY_OUTPUT_FILE = nse_topo_4000_peers_initial | 125 | TOPOLOGY_OUTPUT_FILE = nse_topo_2000_peers_initial |
126 | MAX_OUTSTANDING_CONNECTIONS = 100 | 126 | MAX_OUTSTANDING_CONNECTIONS = 100 |
127 | #SINGLE_PEERINFO_PER_HOST = YES | 127 | #SINGLE_PEERINFO_PER_HOST = YES |
128 | #NUM_PEERINFO_PER_HOST = 10 | 128 | #NUM_PEERINFO_PER_HOST = 10 |
@@ -132,20 +132,20 @@ DELETE_FILES = NO | |||
132 | #SKEW_VARIANCE = 30000 | 132 | #SKEW_VARIANCE = 30000 |
133 | 133 | ||
134 | [nse-profiler] | 134 | [nse-profiler] |
135 | OUTPUT_FILE = nse_output_4000_peers.dat | 135 | OUTPUT_FILE = nse_output_2000_peers.dat |
136 | TOPOLOGY_OUTPUT_FILE = nse_topo_4000_peers | 136 | TOPOLOGY_OUTPUT_FILE = nse_topo_2000_peers |
137 | DATA_OUTPUT_FILE = nse_stats_4000_peers | 137 | DATA_OUTPUT_FILE = nse_stats_2000_peers |
138 | ROUND0 = 1000 | 138 | ROUND0 = 1000 |
139 | #ROUND1 = 4000 | 139 | #ROUND1 = 2000 |
140 | ROUND2 = 4000 | 140 | ROUND2 = 2000 |
141 | ROUND3 = 4000 | 141 | ROUND3 = 2000 |
142 | ROUND4 = 4000 | 142 | ROUND4 = 2000 |
143 | ROUND5 = 4000 | 143 | ROUND5 = 2000 |
144 | ROUND6 = 4000 | 144 | ROUND6 = 2000 |
145 | ROUND7 = 4000 | 145 | ROUND7 = 2000 |
146 | ROUND8 = 4000 | 146 | ROUND8 = 2000 |
147 | ROUND9 = 4000 | 147 | ROUND9 = 2000 |
148 | ROUND10 = 4000 | 148 | ROUND10 = 2000 |
149 | ROUND11 = 1000 | 149 | ROUND11 = 1000 |
150 | ROUND12 = 1000 | 150 | ROUND12 = 1000 |
151 | ROUND13 = 1000 | 151 | ROUND13 = 1000 |