Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make it build again after commit 152117af2fbcf4c99d0da5d10a6813aac7eee007
[simgrid.git] / src / bindings / lua / lua_platf.c
index 581b06d..cc50c9a 100644 (file)
@@ -92,7 +92,8 @@ int console_add_host(lua_State *L) {
   // get power value
   lua_pushstring(L, "power");
   lua_gettable(L, -2);
-  host.power_peak = lua_tonumber(L, -1);
+  host.power_peak = xbt_dynar_new(sizeof(double), NULL);
+  xbt_dynar_push_as(host.power_peak, double, lua_tonumber(L, -1));
   lua_pop(L, 1);
 
   // get core