Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua] Ported state_cloner code to Lua 5.3
[simgrid.git] / examples / lua / state_cloner / duplicated_globals.lua
index 5adc010..26fe0e8 100644 (file)
@@ -13,8 +13,8 @@ global_string = "A global string set by maestro"
 
 -- Assigns to the global string the first argument and prints it
 function set_global_string(...)
-  
-  global_string = arg[1]
+
+  global_string = select(1, ...)
   simgrid.info("Changing the global string")
   print_global()
 end
@@ -43,7 +43,7 @@ end
 
 print_global()
 
-simgrid.platform("../../msg/small_platform.xml")
+simgrid.platform("../../platforms/small_platform.xml")
 simgrid.application("deployment_duplicated_globals.xml")
 simgrid.run()