From 742fc2a4e6a690d2819cb636fd1a1323e1bf3ab9 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 4 Jan 2016 11:56:04 +0100 Subject: [PATCH 1/1] tiny cosmetics --- src/surf/host_interface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/surf/host_interface.cpp b/src/surf/host_interface.cpp index a639622920..4585220e24 100644 --- a/src/surf/host_interface.cpp +++ b/src/surf/host_interface.cpp @@ -37,9 +37,10 @@ simgrid::xbt::Extension Host::EXTENSION_ID; * Model * *********/ Host *HostModel::createHost(const char *name,NetCard *netElm, Cpu *cpu, xbt_dict_t props){ + xbt_dynar_t storageList = (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL); + Host *host = new simgrid::surf::Host(surf_host_model, name, props, - (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL), - netElm, cpu); + storageList, netElm, cpu); XBT_DEBUG("Create host %s with %ld mounted disks", name, xbt_dynar_length(host->p_storage)); return host; } -- 2.20.1