diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-17 19:18:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-17 19:18:52 +0000 |
commit | 7dfd634b17df4e1505c62f2224380a0d38da2e8d (patch) | |
tree | dc8846d3455b9aa73f242ab79328bc943749de2c /src/mesh/test_mesh_small.c | |
parent | 775613176d9e33ccdc8bcd468cfb9aab288458c2 (diff) | |
download | gnunet-7dfd634b17df4e1505c62f2224380a0d38da2e8d.tar.gz gnunet-7dfd634b17df4e1505c62f2224380a0d38da2e8d.zip |
add units to time, use configuration time api where appropriate, fixing Mantis #1875
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-rw-r--r-- | src/mesh/test_mesh_small.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 54c5eb45f..2757da47c 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c | |||
@@ -769,8 +769,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
769 | mesh_peers = GNUNET_malloc (sizeof (uint16_t) * (num_peers + 1)); | 769 | mesh_peers = GNUNET_malloc (sizeof (uint16_t) * (num_peers + 1)); |
770 | 770 | ||
771 | if (GNUNET_OK != | 771 | if (GNUNET_OK != |
772 | GNUNET_CONFIGURATION_get_value_number (testing_cfg, "test_mesh_small", | 772 | GNUNET_CONFIGURATION_get_value_time (testing_cfg, "test_mesh_small", |
773 | "wait_time", &temp_wait)) | 773 | "WAIT_TIME", &wait_time)) |
774 | { | 774 | { |
775 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 775 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
776 | "Option test_mesh_small:wait_time is required!\n"); | 776 | "Option test_mesh_small:wait_time is required!\n"); |
@@ -806,9 +806,6 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
806 | } | 806 | } |
807 | } | 807 | } |
808 | 808 | ||
809 | wait_time = | ||
810 | GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, temp_wait); | ||
811 | |||
812 | if (GNUNET_YES == | 809 | if (GNUNET_YES == |
813 | GNUNET_CONFIGURATION_get_value_string (cfg, "test_mesh_small", | 810 | GNUNET_CONFIGURATION_get_value_string (cfg, "test_mesh_small", |
814 | "output_file", &temp_str)) | 811 | "output_file", &temp_str)) |