diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-04-11 09:51:00 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-04-11 09:51:00 +0000 |
commit | d561fff11e73a8f9886e152bae0695306d32fb67 (patch) | |
tree | 52753b8dc8f43cf7380e09eb60d043328e2f867a /src/dht | |
parent | bf0c66911e342bc9ee6305fa8e039221041b27be (diff) | |
download | gnunet-d561fff11e73a8f9886e152bae0695306d32fb67.tar.gz gnunet-d561fff11e73a8f9886e152bae0695306d32fb67.zip |
log gauger data, differentiate between hostkey generation and hostkey loading/copying
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-dht-driver.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index 602f246c4..99db98acc 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c | |||
@@ -3307,10 +3307,24 @@ hostkey_callback(void *cls, const struct GNUNET_PeerIdentity *id, | |||
3307 | 3307 | ||
3308 | GNUNET_asprintf (&revision_str, "%llu", revision); | 3308 | GNUNET_asprintf (&revision_str, "%llu", revision); |
3309 | if (GNUNET_YES == insert_gauger_data) | 3309 | if (GNUNET_YES == insert_gauger_data) |
3310 | GAUGER_ID("DHT_TESTING", | 3310 | { |
3311 | "HOSTKEY_GENERATION", | 3311 | if (GNUNET_YES == GNUNET_CONFIGURATION_have_value (config, "TESTING", |
3312 | GNUNET_TIME_absolute_get_duration(hostkey_start_time).rel_value / (double)num_peers, | 3312 | "HOSTKEYSFILE")) |
3313 | "ms/hostkey", revision_str); | 3313 | { |
3314 | GAUGER_ID("DHT_TESTING", | ||
3315 | "HOSTKEY_GENERATION", | ||
3316 | GNUNET_TIME_absolute_get_duration(hostkey_start_time).rel_value / (double)num_peers, | ||
3317 | "ms/hostkey", revision_str); | ||
3318 | } | ||
3319 | else | ||
3320 | { | ||
3321 | GAUGER_ID("DHT_TESTING", | ||
3322 | "HOSTKEY_GENERATION_REAL", | ||
3323 | GNUNET_TIME_absolute_get_duration(hostkey_start_time).rel_value / (double)num_peers, | ||
3324 | "ms/hostkey", revision_str); | ||
3325 | } | ||
3326 | } | ||
3327 | |||
3314 | GNUNET_free(revision_str); | 3328 | GNUNET_free(revision_str); |
3315 | 3329 | ||
3316 | GNUNET_SCHEDULER_cancel (die_task); | 3330 | GNUNET_SCHEDULER_cancel (die_task); |