Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make it build again after commit 152117af2fbcf4c99d0da5d10a6813aac7eee007
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 5 Jul 2013 07:46:12 +0000 (09:46 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 5 Jul 2013 08:19:44 +0000 (10:19 +0200)
(added dvfs support).

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