Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Unify surf action_cost type
authorPaul Bédaride <paul.bedaride@gmail.com>
Wed, 5 Feb 2014 10:21:05 +0000 (11:21 +0100)
committerPaul Bédaride <paul.bedaride@gmail.com>
Wed, 12 Feb 2014 09:53:03 +0000 (10:53 +0100)
src/include/surf/surf.h
src/surf/surf_c_bindings.cpp
src/surf/surf_interface.hpp

index 1e3c36c..5a787fa 100644 (file)
@@ -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]
index 8628bda..15ab8f7 100644 (file)
@@ -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();
 }
 
index 2b75d00..f1eaef9 100644 (file)
@@ -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 */