X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/87ce37a26d39bad9a2533f6a54ea11f526ab4046..9fc9b3239f3f2a3a5441fe5c8bac82c1ffa3c9d0:/src/surf/xml/surfxml_sax_cb.cpp diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index d98e65ebd3..659d682858 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -455,10 +455,10 @@ void ETag_surfxml_host(void) { buf = A_surfxml_host_speed; XBT_DEBUG("Buffer: %s", buf); - host.speed_peak = xbt_dynar_new(sizeof(double), nullptr); + host.speed_per_pstate = xbt_dynar_new(sizeof(double), nullptr); if (strchr(buf, ',') == nullptr){ double speed = surf_parse_get_speed(A_surfxml_host_speed,"speed of host", host.id); - xbt_dynar_push_as(host.speed_peak,double, speed); + xbt_dynar_push_as(host.speed_per_pstate,double, speed); } else { xbt_dynar_t pstate_list = xbt_str_split(buf, ","); @@ -470,7 +470,7 @@ void ETag_surfxml_host(void) { xbt_dynar_get_cpy(pstate_list, i, &speed_str); xbt_str_trim(speed_str, nullptr); speed = surf_parse_get_speed(speed_str,"speed of host", host.id); - xbt_dynar_push_as(host.speed_peak, double, speed); + xbt_dynar_push_as(host.speed_per_pstate, double, speed); XBT_DEBUG("Speed value: %f", speed); } xbt_dynar_free(&pstate_list); @@ -484,7 +484,7 @@ void ETag_surfxml_host(void) { host.coord = A_surfxml_host_coordinates; sg_platf_new_host(&host); - xbt_dynar_free(&host.speed_peak); + xbt_dynar_free(&host.speed_per_pstate); current_property_set = nullptr; }