From 07664f4f951645806b48238f386e00272d1e0c8f Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 21 Mar 2014 18:44:37 +0000 Subject: [PATCH] - hide temp config file, show config template --- src/mesh/gnunet-mesh-profiler.c | 2 +- src/mesh/{.profiler.template => profiler.conf} | 0 src/mesh/run_profiler.sh | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/mesh/{.profiler.template => profiler.conf} (100%) diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 17557b3fb..049e32bcb 100644 --- a/src/mesh/gnunet-mesh-profiler.c +++ b/src/mesh/gnunet-mesh-profiler.c @@ -946,7 +946,7 @@ main (int argc, char *argv[]) static uint32_t ports[2]; const char *config_file; - config_file = "profiler.conf"; + config_file = ".profiler.conf"; if (2 > argc) { diff --git a/src/mesh/.profiler.template b/src/mesh/profiler.conf similarity index 100% rename from src/mesh/.profiler.template rename to src/mesh/profiler.conf diff --git a/src/mesh/run_profiler.sh b/src/mesh/run_profiler.sh index ed837204e..5a8edaebe 100755 --- a/src/mesh/run_profiler.sh +++ b/src/mesh/run_profiler.sh @@ -16,6 +16,6 @@ LINKS=`echo "l($PEERS) * $PEERS" | bc -l` LINKS=`printf "%.0f" $LINKS` echo "using $PEERS peers, $LINKS links"; -sed -e "s/%LINKS%/$LINKS/g" .profiler.template > profiler.conf +sed -e "s/%LINKS%/$LINKS/g" profiler.conf > .profiler.conf ./gnunet-mesh-profiler $PEERS -- 2.25.1