X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..e26d84ebd86c18af7d79d4afd659e53fd62ac9eb:/src/bindings/lua/lua_platf.c diff --git a/src/bindings/lua/lua_platf.c b/src/bindings/lua/lua_platf.c index 477e3b9dfa..a985f6bc17 100644 --- a/src/bindings/lua/lua_platf.c +++ b/src/bindings/lua/lua_platf.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2012-2013. The SimGrid Team. +/* Copyright (c) 2010, 2012-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -61,9 +61,9 @@ int console_close(lua_State *L) { /* Initialize MSG and WKS hosts */ XBT_DEBUG("Initialize MSG and WKS hosts"); xbt_lib_foreach(host_lib, cursor, name, data) { - if(data[SURF_WKS_LEVEL]){ + if(data[SURF_HOST_LEVEL]){ XBT_DEBUG("\tSee surf host %s",name); - SIMIX_host_create(name, data[SURF_WKS_LEVEL], NULL); + SIMIX_host_create(name, NULL); __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL]); } }