summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c8e758)
details:
- gtnets_get_flow_rx returns the amount of bytes sent, not what remains
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8135
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
xbt_swag_foreach(action, running_actions) {
DEBUG2("Action (%p) remains old value: %f", action,
action->generic_action.remains);
xbt_swag_foreach(action, running_actions) {
DEBUG2("Action (%p) remains old value: %f", action,
action->generic_action.remains);
- double remain = gtnets_get_flow_rx(action);
+ double sent = gtnets_get_flow_rx(action);
#ifdef HAVE_TRACING
// tracing resource utilization
#ifdef HAVE_TRACING
// tracing resource utilization
- DEBUG1("Remain value returned by GTNetS : %f", remain);
+ DEBUG1("Sent value returned by GTNetS : %f", sent);
//need to trust this remain value
//need to trust this remain value
action->generic_action.remains = 0;
} else {
action->generic_action.remains = 0;
} else {
- action->generic_action.remains = action->generic_action.cost - remain;
+ action->generic_action.remains = action->generic_action.cost - sent;
}
DEBUG2("Action (%p) remains new value: %f", action,
action->generic_action.remains);
}
DEBUG2("Action (%p) remains new value: %f", action,
action->generic_action.remains);