Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua] Updated the bittorent.lua test
[simgrid.git] / examples / lua / bittorrent / bittorrent.lua
index 0570ef0..b1999b6 100644 (file)
@@ -14,6 +14,6 @@ require("tracker")
 -- Initialization of the random generator
 table.sort(math)
 math.randomseed(42)
 -- Initialization of the random generator
 table.sort(math)
 math.randomseed(42)
-simgrid.platform("../../platforms/platform.xml")
-simgrid.application("bittorrent.xml")
+simgrid.platform(arg[1] or  "../../platforms/platform.xml")
+simgrid.application(arg[2] or "bittorrent.xml")
 simgrid.run()
 simgrid.run()