From e58f977bd5e969ee5f3a9fba96f0da48fad52e82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20B=C3=A9daride?= Date: Wed, 5 Feb 2014 11:21:05 +0100 Subject: [PATCH] Unify surf action_cost type --- src/include/surf/surf.h | 2 +- src/surf/surf_c_bindings.cpp | 2 +- src/surf/surf_interface.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 1e3c36c80f..5a787fab99 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -854,7 +854,7 @@ XBT_PUBLIC(e_surf_action_state_t) surf_action_get_state(surf_action_t action); * @param action The surf action * @return The cost of the action */ -XBT_PUBLIC(int) surf_action_get_cost(surf_action_t action); +XBT_PUBLIC(double) surf_action_get_cost(surf_action_t action); /** * @brief [brief desrciption] diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 8628bda367..15ab8f7286 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -529,7 +529,7 @@ e_surf_action_state_t surf_action_get_state(surf_action_t action){ return action->getState(); } -int surf_action_get_cost(surf_action_t action){ +double surf_action_get_cost(surf_action_t action){ return action->getCost(); } diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 2b75d00bd8..f1eaef98da 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -695,7 +695,7 @@ private: #ifdef HAVE_LATENCY_BOUND_TRACKING int m_latencyLimited; /**< Set to 1 if is limited by latency, 0 otherwise */ #endif - int m_cost; + double m_cost; ModelPtr p_model; void *p_data; /**< for your convenience */ -- 2.20.1