aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-nse-profiler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-17 19:18:52 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-17 19:18:52 +0000
commit7dfd634b17df4e1505c62f2224380a0d38da2e8d (patch)
treedc8846d3455b9aa73f242ab79328bc943749de2c /src/nse/gnunet-nse-profiler.c
parent775613176d9e33ccdc8bcd468cfb9aab288458c2 (diff)
downloadgnunet-7dfd634b17df4e1505c62f2224380a0d38da2e8d.tar.gz
gnunet-7dfd634b17df4e1505c62f2224380a0d38da2e8d.zip
add units to time, use configuration time api where appropriate, fixing Mantis #1875
Diffstat (limited to 'src/nse/gnunet-nse-profiler.c')
-rw-r--r--src/nse/gnunet-nse-profiler.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c
index 4ad689be9..d097b96aa 100644
--- a/src/nse/gnunet-nse-profiler.c
+++ b/src/nse/gnunet-nse-profiler.c
@@ -557,8 +557,8 @@ run (void *cls, char *const *args, const char *cfgfile,
557 } 557 }
558 558
559 if (GNUNET_OK != 559 if (GNUNET_OK !=
560 GNUNET_CONFIGURATION_get_value_number (testing_cfg, "nse-profiler", 560 GNUNET_CONFIGURATION_get_value_time (testing_cfg, "nse-profiler",
561 "wait_time", &temp_wait)) 561 "WAIT_TIME", &wait_time))
562 { 562 {
563 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 563 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
564 "Option nse-profiler:wait_time is required!\n"); 564 "Option nse-profiler:wait_time is required!\n");
@@ -611,9 +611,6 @@ run (void *cls, char *const *args, const char *cfgfile,
611 } 611 }
612 612
613 613
614 wait_time =
615 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, temp_wait);
616
617 if (GNUNET_YES == 614 if (GNUNET_YES ==
618 GNUNET_CONFIGURATION_get_value_string (cfg, "nse-profiler", "output_file", 615 GNUNET_CONFIGURATION_get_value_string (cfg, "nse-profiler", "output_file",
619 &temp_str)) 616 &temp_str))