Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ignore more cruft
[simgrid.git] / examples / lua / SimSplay / splay_school.lua
index ee677f116c916c3e10a53b8ccc7d39fb455c8142..e740dd58266de972a2637c4398fe4107b34ca059 100644 (file)
@@ -1,22 +1,25 @@
+-- Copyright (c) 2011, 2014. The SimGrid Team.
+-- All rights reserved.
+
+-- This program is free software; you can redistribute it and/or modify it
+-- under the terms of the license (GNU LGPL) which comes with this package.
+
 require("sim_splay")
 
 function SPLAYschool()
   log:print("My ip is: "..job.me.ip())
-  for i = 1000,10000 do
+  for i = 1,200 do
     log:print(i)
   end
-  
 --[[
   events.sleep(5)
 
   if job.me.ip() == job.nodes[1].ip then
-    log:print("calling")
     rpc.call(job.nodes[2], {"call_me", job.me.ip()})
   end
-  log:print("second sleep")
   events.sleep(5)
   os.exit()
-]]
+  --]]
 end
 
 function call_me(from)
@@ -25,4 +28,5 @@ end
 
 events.thread("SPLAYschool")
 start.loop()
+log:print("Simulation finished")