X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..49e85177c669d793e84242983a1b1f430e47184e:/examples/lua/SimSplay/splay_school.lua diff --git a/examples/lua/SimSplay/splay_school.lua b/examples/lua/SimSplay/splay_school.lua index 51cd58c40a..e740dd5826 100644 --- a/examples/lua/SimSplay/splay_school.lua +++ b/examples/lua/SimSplay/splay_school.lua @@ -1,11 +1,17 @@ +-- 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 @@ -13,6 +19,7 @@ function SPLAYschool() end events.sleep(5) os.exit() + --]] end function call_me(from) @@ -21,4 +28,5 @@ end events.thread("SPLAYschool") start.loop() +log:print("Simulation finished")