X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/121e1dc6ee0462b6f6f1f1570b0f48c61ee4ff9a..2f4509c52115b8a4fb4916f51057d6b9314b4c45:/src/simgrid/host.cpp diff --git a/src/simgrid/host.cpp b/src/simgrid/host.cpp index 308a135c9b..52e1ab79a5 100644 --- a/src/simgrid/host.cpp +++ b/src/simgrid/host.cpp @@ -236,16 +236,17 @@ double sg_host_route_bandwidth(sg_host_t from, sg_host_t to) void sg_host_dump(sg_host_t host) { xbt_dict_t props; - xbt_dict_cursor_t cursor=nullptr; - char *key,*data; XBT_INFO("Displaying host %s", host->cname()); XBT_INFO(" - speed: %.0f", host->speed()); XBT_INFO(" - available speed: %.2f", sg_host_get_available_speed(host)); props = host->properties(); - if (!xbt_dict_is_empty(props)){ + if (not xbt_dict_is_empty(props)) { XBT_INFO(" - properties:"); + xbt_dict_cursor_t cursor = nullptr; + char* key; + char* data; xbt_dict_foreach(props,cursor,key,data) { XBT_INFO(" %s->%s",key,data);