- update();
- float tmp = (actual_flow>max_flow)?max_flow:actual_flow;
- // FIXME : no tiene que ir
- if (out_list.size() == 0) tmp = max_flow;
- who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &tmp);
+ float tmp = *((float *)data);
+ actual_flow = (actual_flow>max_flow)?max_flow:actual_flow;
+ actual_flow = (actual_flow<tmp)?actual_flow:tmp;
+
+ send_msg(OUT, MSG_QUERY_MAX_FLOW_OUT, &actual_flow);
+ who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &actual_flow);
+ updated = true;