A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get a better name for the speedPerPstate attribute in CPU
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_platf.cpp
diff --git
a/src/bindings/lua/lua_platf.cpp
b/src/bindings/lua/lua_platf.cpp
index
5fb2ccd
..
c20e7c4
100644
(file)
--- a/
src/bindings/lua/lua_platf.cpp
+++ b/
src/bindings/lua/lua_platf.cpp
@@
-181,11
+181,11
@@
int console_add_host(lua_State *L) {
if (type != LUA_TSTRING && type != LUA_TNUMBER) {
XBT_ERROR("Attribute 'speed' must be specified for host and must either be a string (in the correct format; check documentation) or a number.");
}
if (type != LUA_TSTRING && type != LUA_TNUMBER) {
XBT_ERROR("Attribute 'speed' must be specified for host and must either be a string (in the correct format; check documentation) or a number.");
}
- host.speed_pe
ak
= xbt_dynar_new(sizeof(double), NULL);
+ host.speed_pe
r_pstate
= xbt_dynar_new(sizeof(double), NULL);
if (type == LUA_TNUMBER)
if (type == LUA_TNUMBER)
- xbt_dynar_push_as(host.speed_pe
ak
, double, lua_tointeger(L, -1));
+ xbt_dynar_push_as(host.speed_pe
r_pstate
, double, lua_tointeger(L, -1));
else // LUA_TSTRING
else // LUA_TSTRING
- xbt_dynar_push_as(host.speed_pe
ak
, double, surf_parse_get_speed(lua_tostring(L, -1), "speed of host", host.id));
+ xbt_dynar_push_as(host.speed_pe
r_pstate
, double, surf_parse_get_speed(lua_tostring(L, -1), "speed of host", host.id));
lua_pop(L, 1);
// get core
lua_pop(L, 1);
// get core
@@
-216,7
+216,7
@@
int console_add_host(lua_State *L) {
lua_pop(L, 1);
sg_platf_new_host(&host);
lua_pop(L, 1);
sg_platf_new_host(&host);
- xbt_dynar_free(&host.speed_pe
ak
);
+ xbt_dynar_free(&host.speed_pe
r_pstate
);
return 0;
}
return 0;
}