- hide temp config file, show config template
authorBart Polot <bart@net.in.tum.de>
Fri, 21 Mar 2014 18:44:37 +0000 (18:44 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 21 Mar 2014 18:44:37 +0000 (18:44 +0000)
src/mesh/.profiler.template [deleted file]
src/mesh/gnunet-mesh-profiler.c
src/mesh/profiler.conf [new file with mode: 0644]
src/mesh/run_profiler.sh

diff --git a/src/mesh/.profiler.template b/src/mesh/.profiler.template
deleted file mode 100644 (file)
index 4dec924..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-@INLINE@ test_mesh.conf
-[testbed]
-OVERLAY_TOPOLOGY = RANDOM
-OVERLAY_RANDOM_LINKS = 200
-
-[transport]
-#MANIPULATE_DELAY_IN = 50 ms
-MANIPULATE_DELAY_OUT = 100 ms
\ No newline at end of file
index 17557b3fbe0324a5f51603896969fe8949b7cb15..049e32bcb85f930605cc9e8a811382dee852149e 100644 (file)
@@ -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.conf b/src/mesh/profiler.conf
new file mode 100644 (file)
index 0000000..4dec924
--- /dev/null
@@ -0,0 +1,8 @@
+@INLINE@ test_mesh.conf
+[testbed]
+OVERLAY_TOPOLOGY = RANDOM
+OVERLAY_RANDOM_LINKS = 200
+
+[transport]
+#MANIPULATE_DELAY_IN = 50 ms
+MANIPULATE_DELAY_OUT = 100 ms
\ No newline at end of file
index ed837204ec115be53155227216da3bb12b805f54..5a8edaebef678f3085c74c3e92f812c65271c5f2 100755 (executable)
@@ -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